def test_resolve(self): # just get some coverage handler.define(TestInterface) handler.resolve('test', TestHandler()) handler.resolve('test', 'test') handler.resolve('test', TestHandler) self.reset_backend() self.app = self.make_app('test') handler.define(TestInterface) handler.resolve('test', TestHandler) handler.resolve('test', None, raise_error=False) try: handler.resolve('test', None) except Exception as e: pass
def load(app=None): handler.define(AuthInterface) handler.define(DataInterface) handler.define(MatchInterface) handler.define(PullsInterface) handler.define(ReadinglistInterface)
def test_interface_with_no_validator(self): handler.define(TestInterface) handler.register(TestHandler)
def test_define_duplicate_interface(self): handler.define(output.IOutput) handler.define(output.IOutput)
def test_bogus_interface_no_IMeta_label(self): handler.define(BogusInterface2)
def test_bogus_interface_no_IMeta(self): handler.define(BogusInterface1)
def __init__(self, label=None, **kw): super(PmApp, self).__init__(**kw) handler.define(command.ICommand) self.cmd = None
def load(app=None): handler.define(AuthInterface)