Spaces:
Sleeping
Sleeping
Download code-review-env/tests/test_phase4_server.py from Athmabhiram1/nodeaudit-openenv: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/Athmabhiram1/nodeaudit-openenv/resolve/main/code-review-env/tests/test_phase4_server.py
- Command line
-
hf download hf://spaces/Athmabhiram1/nodeaudit-openenv/code-review-env/tests/test_phase4_server.py
-
curl -L -o test_phase4_server.py https://huggingface.co/spaces/Athmabhiram1/nodeaudit-openenv/resolve/main/code-review-env/tests/test_phase4_server.py
497 Bytes
| from __future__ import annotations | |
| from fastapi.testclient import TestClient | |
| from server.app import app | |
| client = TestClient(app) | |
| def test_operational_endpoints() -> None: | |
| health = client.get("/health") | |
| assert health.status_code == 200 | |
| assert health.json()["ok"] is True | |
| tasks = client.get("/tasks") | |
| assert tasks.status_code == 200 | |
| task_ids = {task["task_id"] for task in tasks.json()} | |
| assert {"style_review", "logic_review", "cascade_review"}.issubset(task_ids) | |