Spaces:
Sleeping
Sleeping
Download tests/test_image_generation.py from DvorakInnovationAI/GenAI-FASTAPI: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/spaces/DvorakInnovationAI/GenAI-FASTAPI/resolve/main/tests/test_image_generation.py
- Command line
-
hf download hf://spaces/DvorakInnovationAI/GenAI-FASTAPI/tests/test_image_generation.py
-
curl -L -o test_image_generation.py https://huggingface.co/spaces/DvorakInnovationAI/GenAI-FASTAPI/resolve/main/tests/test_image_generation.py
237 Bytes
| from fastapi.testclient import TestClient | |
| from api.main import app | |
| client = TestClient(app) | |
| def test_image_generation(): | |
| response = client.get("/api/generate-image") | |
| print(response.json()) | |
| assert response.status_code == 200 |