Update: Blueprint instead of app Routes for Tests

This commit is contained in:
Yûki VACHOT 2022-01-12 18:35:55 +01:00
parent d556784983
commit 78bc60a4c0
6 changed files with 24 additions and 503 deletions

View file

@ -28,6 +28,7 @@ def create_app(flask_env='development'):
with app.app_context():
print('import routes')
from . import routes
app.register_blueprint(routes.bp)
print('db.create_all')
db.create_all()
print('db created')