diff options
author | Frederick Muriuki Muriithi | 2022-02-14 14:33:40 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2022-02-17 08:20:17 +0300 |
commit | 9879964c42a5f9373fcfa2b3685cdd74cf3ea176 (patch) | |
tree | a2dbf2e4b02de3195a2366947a13bb7830599258 /tests/integration | |
parent | 74044f3c7985308b4996da3a52f91c5c20a19194 (diff) | |
download | genenetwork3-9879964c42a5f9373fcfa2b3685cdd74cf3ea176.tar.gz |
Create client fixture for integration tests
Create a client fixture to help with the integration tests
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/conftest.py | 12 |
1 files changed, 12 insertions, 0 deletions
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 |