Spaces:
Sleeping
Sleeping
Download tests/conftest.py from Pabloler21/CamGuard: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/Pabloler21/CamGuard/resolve/main/tests/conftest.py
- Command line
-
hf download hf://spaces/Pabloler21/CamGuard/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/Pabloler21/CamGuard/resolve/main/tests/conftest.py
375 Bytes
| import tempfile | |
| import pytest | |
| def _temp_files_inside_pytest(tmp_path, monkeypatch): | |
| """Los archivos temporales que crea el código bajo prueba van a la carpeta de pytest. | |
| Sin esto, cada corrida dejaba videos de resultado sueltos en la carpeta temporal del sistema. | |
| """ | |
| monkeypatch.setattr(tempfile, "tempdir", str(tmp_path)) | |