Skip to content

Commit e89e73f

Browse files
committed
fix(tests): update health check test to accept degraded status
The health check now performs real database connectivity checks, which may return 'degraded' status in test environments without a database file. Update test to accept either 'healthy' or 'degraded'.
1 parent 433e8a8 commit e89e73f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/integration/test_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ def test_health_check(self, test_client: TestClient) -> None:
1414
assert response.status_code == 200
1515

1616
data = response.json()
17-
assert data["status"] == "healthy"
17+
# Status can be "healthy" or "degraded" depending on database availability
18+
assert data["status"] in ("healthy", "degraded")
1819
assert "version" in data
1920
assert "timestamp" in data
2021

0 commit comments

Comments
 (0)