13 lines
243 B
Python
13 lines
243 B
Python
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
|