test_health.py 316 B

12345678910111213
  1. from fastapi.testclient import TestClient
  2. from app.main import app
  3. def test_health_reports_journey_service() -> None:
  4. response = TestClient(app).get("/api/health")
  5. assert response.status_code == 200
  6. assert response.json() == {
  7. "status": "ok",
  8. "service": "script-build-journey",
  9. }