From 02997b2522b9c66072b16f1425c02e81e0085e3c Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 14 Jul 2020 21:10:56 +0200 Subject: Rename web-server to API This change renames the web-server component to API in order to be more descriptive of its role. The OpenDC API bridges between the frontend on one side and the database and simulator on the other side. --- api/conftest.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 api/conftest.py (limited to 'api/conftest.py') diff --git a/api/conftest.py b/api/conftest.py new file mode 100644 index 00000000..1f4831b8 --- /dev/null +++ b/api/conftest.py @@ -0,0 +1,15 @@ +""" +Configuration file for all unit tests. +""" +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