change boolean fields in schema from Bit(1) to Boolean

This commit is contained in:
2025-04-19 01:40:13 +02:00
parent 20f29d88fa
commit 2bdbef8f8a
9 changed files with 44 additions and 45 deletions
+7 -3
View File
@@ -1,10 +1,14 @@
from fastapi.testclient import TestClient
import pytest
from app.main import app
client = TestClient(app)
@pytest.fixture(name="client")
def client_fixture():
client = TestClient(app)
yield client
def test_get_authors():
def test_get_artists(client: TestClient):
response = client.get("/comic/artists")
assert response.status_code == 200
assert len(response.json()) == 5