Files
kontor/fastapi/app/tests/test_main.py
T
2025-04-17 02:21:14 +02:00

11 lines
239 B
Python

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