mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
193: Removed depreciated public.PublicAPI class; removed corresponding unit tests
This commit is contained in:
@@ -334,8 +334,3 @@ class Property(Attribute, Option):
|
||||
|
||||
def get_doc(self, _):
|
||||
return _('Property doc')
|
||||
|
||||
|
||||
class PublicAPI(plugable.API):
|
||||
def __init__(self):
|
||||
super(PublicAPI, self).__init__(Command, Object, Method, Property)
|
||||
|
||||
@@ -495,20 +495,3 @@ class test_prop(ClassChecker):
|
||||
def test_class(self):
|
||||
assert self.cls.__bases__ == (public.Attribute, public.Option)
|
||||
assert self.cls.implements(public.Option)
|
||||
|
||||
|
||||
def test_PublicAPI():
|
||||
cls = public.PublicAPI
|
||||
assert issubclass(cls, plugable.API)
|
||||
|
||||
api = cls()
|
||||
|
||||
class cmd1(public.Command):
|
||||
pass
|
||||
api.register(cmd1)
|
||||
|
||||
class cmd2(public.Command):
|
||||
pass
|
||||
api.register(cmd2)
|
||||
|
||||
api.finalize()
|
||||
|
||||
Reference in New Issue
Block a user