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