示例#1
0
 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)
示例#3
0
 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")
示例#4
0
 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)
 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)