diff --git a/tests/conftest.py b/tests/conftest.py index 4016ff0..30345fa 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1 +1,12 @@ -# Env var setup that must run before app.config is imported. +import pytest +from fastapi.testclient import TestClient + +from app.config import get_settings +from app.main import app + + +@pytest.fixture +def client(): + get_settings.cache_clear() + with TestClient(app) as value: + yield value