summaryrefslogtreecommitdiff
path: root/conftest.py
blob: 05172b04624f23e21f03ba41e531ef15c23f31b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
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