def get_app(self): return ThumborServiceApp(get_conf_path('default.py'))
def topic(self): ctx = Context(None, Config(), None) application = ThumborServiceApp(ctx) handler = BaseHandler(application, MagicMock()) handler._transforms = [] return handler
def test_can_create_app(self): ctx = mock.Mock() app = ThumborServiceApp(ctx) expect(app).not_to_be_null() expect(app.context).to_equal(ctx)
def get_app(self): cfg = Config() ctx = Context(None, cfg, None) application = ThumborServiceApp(ctx) return application
def get_app(self): return ThumborServiceApp(join(fixtures_folder, 'no_storage_conf.py'))
def get_app(self): self.context = self.get_context() return ThumborServiceApp(self.context)
def test_can_create_app(self): app = ThumborServiceApp(self.context) expect(app).not_to_be_null() expect(app.context).to_equal(self.context)
def get_app(self): return ThumborServiceApp(get_conf_path('jsonp.py'))
def get_app(self): return ThumborServiceApp()
def topic(self): context = Context(None, Config(), None) return ThumborServiceApp(context)