Spaces:
Sleeping
Sleeping
fix: update health check test assertions for correct response keys
Browse files- tests/test_commend.py +3 -2
tests/test_commend.py
CHANGED
|
@@ -10,8 +10,9 @@ def test_commend_health(client: TestClient) -> None:
|
|
| 10 |
response = client.get("/api/commend/health")
|
| 11 |
assert response.status_code == 200
|
| 12 |
data = response.json()
|
| 13 |
-
assert "
|
| 14 |
-
assert "
|
|
|
|
| 15 |
|
| 16 |
|
| 17 |
def test_commend_generate_rejects_invalid_url(client: TestClient) -> None:
|
|
|
|
| 10 |
response = client.get("/api/commend/health")
|
| 11 |
assert response.status_code == 200
|
| 12 |
data = response.json()
|
| 13 |
+
assert "status" in data
|
| 14 |
+
assert "geminiConfigured" in data
|
| 15 |
+
assert "youtubeConfigured" in data
|
| 16 |
|
| 17 |
|
| 18 |
def test_commend_generate_rejects_invalid_url(client: TestClient) -> None:
|