From 582817aae28e72ec278f161216a65a6c1c24836a Mon Sep 17 00:00:00 2001 From: Louise Davies Date: Thu, 4 Feb 2021 11:58:59 +0000 Subject: [PATCH] Fix tests by manually pushing app context --- test/conftest.py | 1 + 1 file changed, 1 insertion(+) diff --git a/test/conftest.py b/test/conftest.py index 9d29d01e..3c7c3b16 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -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()