forked from Github-Mirrors/canaille
remove unnecessary application context in unit tests
This commit is contained in:
parent
cea37712f0
commit
a631946cb5
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue