Files
pdf/gateway/tests/conftest.py
T

15 lines
310 B
Python

"""Shared pytest fixtures for gateway tests."""
from collections.abc import Iterator
import pytest
from fastapi.testclient import TestClient
from app.main import create_app
@pytest.fixture()
def client() -> Iterator[TestClient]:
with TestClient(create_app()) as test_client:
yield test_client