From 4770ebb2eacfc1ff9725745ce52b35cdb76760d5 Mon Sep 17 00:00:00 2001 From: Leigh Morresi <275001+dgtlmoon@users.noreply.github.com> Date: Tue, 16 Feb 2021 21:48:38 +0100 Subject: [PATCH] Tweaking client --- backend/tests/conftest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/tests/conftest.py b/backend/tests/conftest.py index 213173ac..03ccd21c 100644 --- a/backend/tests/conftest.py +++ b/backend/tests/conftest.py @@ -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):