Skip to content

Commit

Permalink
Fix tests by manually pushing app context
Browse files Browse the repository at this point in the history
  • Loading branch information
louise-davies committed Feb 4, 2021
1 parent 825c2dd commit 582817a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def flask_test_app_db():

api, spec = create_app_infrastructure(db_app)
create_api_endpoints(db_app, api, spec)
db_app.app_context().push()

yield db_app.test_client()

Expand Down

0 comments on commit 582817a

Please sign in to comment.