Skip to content

Commit d47a074

Browse files
paultranvanclaude
andcommitted
fix(05-01): update health check API test for new JSON response
The enhanced health check now returns JSON with status/checks instead of plain text. Update assertion to match. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 4d1d428 commit d47a074

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/api_tests/test_health.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ def test_health_check(api_client):
55
"""Test health check endpoint returns OK."""
66
response = api_client.get("/health_check")
77
assert response.status_code == 200
8-
assert "RAG API is up" in response.text
8+
data = response.json()
9+
assert data["status"] in ("healthy", "degraded")
910

1011

1112
def test_openapi_docs_accessible(api_client):

0 commit comments

Comments
 (0)