Download backend/tests/integration/conftest.py from new-arc/vector: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/tests/integration/conftest.py
- Command line
-
hf download hf://spaces/new-arc/vector/backend/tests/integration/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/new-arc/vector/resolve/main/backend/tests/integration/conftest.py
394 Bytes
| import pytest | |
| from src.services.video_service import VideoService | |
| def one_minute_uploads(monkeypatch): | |
| """Integration tests create tasks from placeholder upload:// references with | |
| no file behind them; treat each as a one-minute video when it's probed.""" | |
| monkeypatch.setattr(VideoService, "probe_upload_duration", staticmethod(lambda *_args: 60.0)) | |