remove unnecessary application context in unit tests

This commit is contained in:
Éloi Rivard 2023-07-18 16:34:32 +02:00
parent cea37712f0
commit a631946cb5
No known key found for this signature in database
GPG key ID: 7EDA204EA57DD184

View file

@ -120,8 +120,7 @@ def app(configuration, backend):
def testclient(app): def testclient(app):
app.config["TESTING"] = True app.config["TESTING"] = True
app.jinja_env.undefined = StrictUndefined app.jinja_env.undefined = StrictUndefined
with app.app_context(): yield TestApp(app)
yield TestApp(app)
@pytest.fixture @pytest.fixture