Spaces:
Sleeping
Sleeping
Download tests/test_orchestrator.py from DvorakInnovationAI/GenAI-FASTAPI: direct link, hf CLI and curl.
- Browser
- Download file 296 Bytes
-
https://huggingface.co/spaces/DvorakInnovationAI/GenAI-FASTAPI/resolve/main/tests/test_orchestrator.py
- Command line
-
hf download hf://spaces/DvorakInnovationAI/GenAI-FASTAPI/tests/test_orchestrator.py
-
curl -L -o test_orchestrator.py https://huggingface.co/spaces/DvorakInnovationAI/GenAI-FASTAPI/resolve/main/tests/test_orchestrator.py
296 Bytes
| from fastapi.testclient import TestClient | |
| from api.main import app | |
| client = TestClient(app) | |
| def test_orchestrator(): | |
| payload = { | |
| "message":"Hello" | |
| } | |
| response = client.post("/api/orchestration", json=payload) | |
| print(response.json()) | |
| assert response.status_code == 200 |