Skip to content

Commit b56224d

Browse files
author
Seth Teichman
committed
Make app test fixture run with app_context
1 parent cb5cbd4 commit b56224d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flask_parameter_validation/test/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
def app():
77
app = create_app()
88
app.config.update({"TESTING": True})
9-
yield app
9+
with app.app_context():
10+
yield app
1011

1112

1213
@pytest.fixture()

0 commit comments

Comments
 (0)