예제 #1
0
    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
예제 #2
0
def load(app=None):
    handler.define(AuthInterface)
    handler.define(DataInterface)
    handler.define(MatchInterface)
    handler.define(PullsInterface)
    handler.define(ReadinglistInterface)
예제 #3
0
 def test_interface_with_no_validator(self):
     handler.define(TestInterface)
     handler.register(TestHandler)
예제 #4
0
 def test_define_duplicate_interface(self):
     handler.define(output.IOutput)
     handler.define(output.IOutput)
예제 #5
0
 def test_bogus_interface_no_IMeta_label(self):
     handler.define(BogusInterface2)
예제 #6
0
 def test_bogus_interface_no_IMeta(self):
     handler.define(BogusInterface1)
예제 #7
0
 def __init__(self, label=None, **kw):
     super(PmApp, self).__init__(**kw)
     handler.define(command.ICommand)
     self.cmd = None
예제 #8
0
def load(app=None):
    handler.define(AuthInterface)