def setup_app(self): super(TestSoftwareAPI, self).setup_app() self.api = get_api_blueprint() self.app.register_blueprint(self.api) load_api(self.app, self.api)
def setup_app(self): super(TestTaskLogsAPI, self).setup_app() self.api = get_api_blueprint() self.app.register_blueprint(self.api) load_api(self.app, self.api)
def test_get_api_blueprint(self): api = get_api_blueprint(url_prefix="/foo") self.assertIsInstance(api, Blueprint) self.assertEqual(api.url_prefix, "/foo") self.assertEqual(api.name, "api") self.assertEqual(api.import_name, "pyfarm.master.api")
def setup_app(self): super(TestAgentAPIFilter, self).setup_app() self.api = get_api_blueprint() self.app.register_blueprint(self.api) load_api(self.app, self.api)