Files
kontor/kontor-api/tests/test_main.py
T
2025-04-30 17:31:18 +02:00

16 lines
346 B
Python

from fastapi.testclient import TestClient
import pytest
from src.main import app
@pytest.fixture(name="client")
def client_fixture():
client = TestClient(app)
yield client
def test_get_artists(client: TestClient):
response = client.get("/comic/artists")
assert response.status_code == 200
assert len(response.json()) == 5