summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-api/conftest.py
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-14 12:43:47 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2021-05-17 17:06:50 +0200
commit17327a642738e0500f9a007b32a46bb4f426f881 (patch)
tree733f897b96de27a105a127cbcafe788bea9de07e /opendc-web/opendc-web-api/conftest.py
parentd9e65dceb38cdb8dc4e464d388755f9456620566 (diff)
api: Remove Socket.IO endpoint from public API
This change removes the Socket.IO endpoint from the public API now that we have switched to the REST API instead. This decreases the possible exposure to vulnerabilities as well as the maintenance burden.
Diffstat (limited to 'opendc-web/opendc-web-api/conftest.py')
-rw-r--r--opendc-web/opendc-web-api/conftest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/opendc-web/opendc-web-api/conftest.py b/opendc-web/opendc-web-api/conftest.py
index 1f4831b8..8bb55ccc 100644
--- a/opendc-web/opendc-web-api/conftest.py
+++ b/opendc-web/opendc-web-api/conftest.py
@@ -3,13 +3,13 @@ Configuration file for all unit tests.
"""
import pytest
-from main import FLASK_CORE_APP
+from app import app
@pytest.fixture
def client():
"""Returns a Flask API client to interact with."""
- FLASK_CORE_APP.config['TESTING'] = True
+ app.config['TESTING'] = True
- with FLASK_CORE_APP.test_client() as client:
+ with app.test_client() as client:
yield client