From 4f9a40abdc7836345113c047f27fcc96800cb3f5 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Mon, 29 Jun 2020 16:05:23 +0200 Subject: Prepare web-server repository for monorepo This change prepares the web-server Git repository for the monorepo residing at https://github.com/atlarge-research.com/opendc. To accomodate for this, we move all files into a web-server subdirectory. --- web-server/conftest.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 web-server/conftest.py (limited to 'web-server/conftest.py') 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 -- cgit v1.2.3