Spaces:
Runtime error
Runtime error
Download tests/test_analytics.py from subashdvorak/trygithubactions: direct link, hf CLI and curl.
- Browser
- Download file 230 Bytes
-
https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/tests/test_analytics.py
- Command line
-
hf download hf://spaces/subashdvorak/trygithubactions/tests/test_analytics.py
-
curl -L -o test_analytics.py https://huggingface.co/spaces/subashdvorak/trygithubactions/resolve/main/tests/test_analytics.py
230 Bytes
| from fastapi.testclient import TestClient | |
| from api.main import app | |
| client = TestClient(app) | |
| def test_analytics(): | |
| response = client.get("/api/show-analytics") | |
| print(response.json()) | |
| assert response.status_code == 200 |