code: Grundgerüst und FastAPI-Health-Endpoint

This commit is contained in:
2026-06-10 07:44:42 +02:00
parent 9affaac82f
commit 1549acb90b
4 changed files with 65 additions and 25 deletions

10
tests/test_health.py Normal file
View File

@@ -0,0 +1,10 @@
from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_returns_ok() -> None:
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}