update scripts to use Postgres

This commit is contained in:
Thomas Peetz
2025-05-01 01:13:49 +02:00
parent 72c1a7d265
commit 7ff2bf912d
12 changed files with 110 additions and 45 deletions
+1 -9
View File
@@ -1,15 +1,7 @@
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
assert len(response.json()) == 0