diff --git a/tests/conftest.py b/tests/conftest.py index 4016ff0..297dfc4 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1 +1,12 @@ -# Env var setup that must run before app.config is imported. +from collections.abc import Iterator + +import pytest +from fastapi.testclient import TestClient + +from app.main import app + + +@pytest.fixture +def client() -> Iterator[TestClient]: + with TestClient(app) as test_client: + yield test_client