Download backend/tests/integration/test_caption_validation.py from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/tests/integration/test_caption_validation.py
- Command line
-
hf download hf://spaces/new-arc/vector/backend/tests/integration/test_caption_validation.py
-
curl -L -o test_caption_validation.py https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/tests/integration/test_caption_validation.py
425 Bytes
| import pytest | |
| async def test_caption_style_rejects_non_finite_values(client, auth_headers, payload): | |
| response = await client.patch("/tasks/missing/clips/missing/captions", headers=auth_headers, json=payload) | |
| assert response.status_code == 400 | |