Update: Blueprint instead of app Routes for Tests
This commit is contained in:
parent
d556784983
commit
78bc60a4c0
6 changed files with 24 additions and 503 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue