Skip to content

Commit

Permalink
Issue #5 add app_context to flask_app fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenVerstraelen authored and soxofaan committed Sep 16, 2022
1 parent c3178ac commit 3747406
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,9 @@ def get_flask_app(config: AggregatorConfig) -> flask.Flask:

@pytest.fixture
def flask_app(config: AggregatorConfig) -> flask.Flask:
return get_flask_app(config)

app = get_flask_app(config)
with app.app_context():
yield app

@pytest.fixture
def backend_implementation(flask_app) -> AggregatorBackendImplementation:
Expand Down

0 comments on commit 3747406

Please sign in to comment.