from fastapi.testclient import TestClient from app.main import app client = TestClient(app) def test_get_authors(): response = client.get("/comic/artists") assert response.status_code == 200 assert len(response.json()) == 5