| 123456789101112131415 |
- from fastapi.testclient import TestClient
- from app.main import app
- def test_live_health_reports_project_identity() -> None:
- response = TestClient(app).get("/api/v1/system/health/live")
- assert response.status_code == 200
- assert response.json()["data"] == {
- "status": "alive",
- "project": "智保通",
- "stage": "s1",
- }
- assert response.json()["meta"]["request_id"]
|