Download tests/integration/test_api.py from husnainbinmunawar/ShiftBudget-Research-Lab: direct link, hf CLI and curl.
- Browser
- Download file 385 Bytes
-
https://huggingface.co/spaces/husnainbinmunawar/ShiftBudget-Research-Lab/resolve/main/tests/integration/test_api.py
- Command line
-
hf download hf://spaces/husnainbinmunawar/ShiftBudget-Research-Lab/tests/integration/test_api.py
-
curl -L -o test_api.py https://huggingface.co/spaces/husnainbinmunawar/ShiftBudget-Research-Lab/resolve/main/tests/integration/test_api.py
385 Bytes
| import sys | |
| sys.path.insert(0, "apps") | |
| sys.path.insert(0, "packages/core") | |
| from fastapi.testclient import TestClient | |
| from api.main import app | |
| def test_health_is_explicit_about_evidence(): | |
| with TestClient(app) as client: | |
| response = client.get("/api/v1/health") | |
| assert response.status_code == 200 | |
| assert response.json()["evidence_mode"] == "real_artifacts_only" | |