summaryrefslogtreecommitdiff
path: root/web-server/conftest.py
blob: 1f4831b8904243d1c7d8b1b46512ad360e3d473b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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