aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2022-02-14 14:33:40 +0300
committerFrederick Muriuki Muriithi2022-02-17 08:20:17 +0300
commit9879964c42a5f9373fcfa2b3685cdd74cf3ea176 (patch)
treea2dbf2e4b02de3195a2366947a13bb7830599258
parent74044f3c7985308b4996da3a52f91c5c20a19194 (diff)
downloadgenenetwork3-9879964c42a5f9373fcfa2b3685cdd74cf3ea176.tar.gz
Create client fixture for integration tests
Create a client fixture to help with the integration tests
-rw-r--r--tests/integration/conftest.py12
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