193: Removed depreciated public.PublicAPI class; removed corresponding unit tests
This commit is contained in:
1 parent
0d35c96f1a
commit
45a6ee50b1
2 files changed
-22
No files matched your search
@@ -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