feat: add containerized FastAPI health check

This commit is contained in:
bot
2026-08-11 14:44:59 +03:00
parent fea8ca89f8
commit f7e668d692
10 changed files with 167 additions and 2 deletions
+19
View File
@@ -0,0 +1,19 @@
from fastapi.testclient import TestClient
from app.main import app
client = TestClient(app)
def test_health_returns_healthy() -> None:
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "healthy"}
def test_root_identifies_application() -> None:
response = client.get("/")
assert response.status_code == 200
assert response.json() == {"name": "Media Ingest", "status": "running"}