Spaces:
Runtime error
Runtime error
Download tests/api/test_utils.py from zinoubm/openpdf-backend: direct link, hf CLI and curl.
- Browser
- Download file 255 Bytes
-
https://huggingface.co/spaces/zinoubm/openpdf-backend/resolve/main/tests/api/test_utils.py
- Command line
-
hf download hf://spaces/zinoubm/openpdf-backend/tests/api/test_utils.py
-
curl -L -o test_utils.py https://huggingface.co/spaces/zinoubm/openpdf-backend/resolve/main/tests/api/test_utils.py
255 Bytes
| from httpx import AsyncClient | |
| from app.core.config import settings | |
| async def test_hello_world(client: AsyncClient) -> None: | |
| resp = await client.get(f"{settings.API_PATH}/hello-world") | |
| data = resp.json() | |
| assert data["msg"] == "Hello world!" | |