summaryrefslogtreecommitdiff
path: root/web-server/conftest.py
diff options
context:
space:
mode:
Diffstat (limited to 'web-server/conftest.py')
-rw-r--r--web-server/conftest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/web-server/conftest.py b/web-server/conftest.py
new file mode 100644
index 00000000..05172b04
--- /dev/null
+++ b/web-server/conftest.py
@@ -0,0 +1,12 @@
+import pytest
+
+from main import FLASK_CORE_APP
+
+
+@pytest.fixture
+def client():
+ """Returns a Flask API client to interact with."""
+ FLASK_CORE_APP.config['TESTING'] = True
+
+ with FLASK_CORE_APP.test_client() as client:
+ yield client