Tweaking client

This commit is contained in:
Leigh Morresi
2021-02-16 21:48:38 +01:00
parent d4db082c01
commit 4770ebb2ea

View File

@@ -32,7 +32,9 @@ def app(request):
@pytest.fixture(scope='session')
def client(app):
return app.test_client()
with app.test_client() as client:
yield client
@pytest.fixture(scope='function')
def session(request):