Emmanuel Ferdman cdae94515a
Add /health endpoint for service health checks
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-10-12 16:22:10 +03:00

12 lines
291 B
Python

def test_api_get_health(client):
response = client.get("/health")
assert response.status_code == 200
assert response.json == {"status": "ok"}
def test_api_health_must_fail_bad_request_type(client):
response = client.post("/health")
assert response.status_code == 405