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