Try to resolve healthz error on CI
CI / lint_and_test (push) Failing after 2m47s
Details
CI / lint_and_test (push) Failing after 2m47s
Details
This commit is contained in:
parent
2eaa9d5331
commit
99ae69713a
|
@ -37,4 +37,4 @@ jobs:
|
||||||
run: ruff check .
|
run: ruff check .
|
||||||
|
|
||||||
- name: Run Pytest
|
- name: Run Pytest
|
||||||
run: pytest
|
run: pytest -s
|
||||||
|
|
|
@ -15,6 +15,7 @@ def test_health_endpoint():
|
||||||
response = client.get("/healthz")
|
response = client.get("/healthz")
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
data = response.json()
|
data = response.json()
|
||||||
|
print("Health check response:", data)
|
||||||
assert "status" in data
|
assert "status" in data
|
||||||
assert data["status"] == "healthy"
|
assert data["status"] == "healthy"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue