11 lines
239 B
Python
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
|