Beispiel #1
0
from app import create_app
from rest_api.api import create_api


application = create_app()
create_api(application)

if __name__ == '__main__':
    application.run(host='localhost', debug=True, port=5000, threaded=True)
Beispiel #2
0
 def setUp(self):
     self.application = create_app(config_class=TestConfig)
     Base.metadata.create_all(bind=self.application.engine)
     initial_fill(self.application)
     create_api(self.application)
     self.app = self.application.test_client()