Resolve health_endpoint test
CI / lint_and_test (push) Failing after 4m0s
Details
CI / lint_and_test (push) Failing after 4m0s
Details
This commit is contained in:
parent
734c7a767d
commit
1b8e7a3c1a
|
@ -14,11 +14,12 @@ client = TestClient(app)
|
|||
|
||||
|
||||
@patch("src.app.routers.health.EmbeddingService")
|
||||
def test_health_endpoint(mock_embedding_service):
|
||||
@patch("src.app.routers.health.ChromaStore")
|
||||
def test_health_endpoint(mock_embedding_service, mock_chroma_store):
|
||||
mock_chroma_store.return_value.get_count.return_value = 1
|
||||
response = client.get("/healthz")
|
||||
assert response.status_code == 200
|
||||
data = response.json()
|
||||
print("Health check response:", data)
|
||||
assert "status" in data
|
||||
assert data["status"] == "healthy"
|
||||
|
||||
|
|
Loading…
Reference in New Issue