use PostgreSQL for kontor-spring and kontor-api

This commit is contained in:
Thomas Peetz
2025-04-30 22:10:05 +02:00
parent 2efacf6d67
commit 72c1a7d265
36 changed files with 184 additions and 977 deletions
+3 -3
View File
@@ -1,15 +1,15 @@
from fastapi.testclient import TestClient
import pytest
from src.main import app
from src.main import kontor
@pytest.fixture(name="client")
def client_fixture():
client = TestClient(app)
client = TestClient(kontor)
yield client
def test_get_artists(client: TestClient):
response = client.get("/comic/artists")
response = client.get("/api/comic/artists")
assert response.status_code == 200
assert len(response.json()) == 5