From 9879964c42a5f9373fcfa2b3685cdd74cf3ea176 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 14 Feb 2022 14:33:40 +0300 Subject: Create client fixture for integration tests Create a client fixture to help with the integration tests --- tests/integration/conftest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/integration/conftest.py (limited to 'tests/integration/conftest.py') diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py new file mode 100644 index 0000000..be58d80 --- /dev/null +++ b/tests/integration/conftest.py @@ -0,0 +1,12 @@ +import pytest + +from gn3.app import create_app + +@pytest.fixture(scope="session") +def client(): + # Do some setup + app = create_app() + app.config.update({"TESTING": True}) + app.testing = True + yield app.test_client() + # Do some teardown/cleanup -- cgit v1.2.3