Download backend/tests/conftest.py from StillWorking/sentinel-face-recognition: direct link, hf CLI and curl.
- Browser
- Download file 242 Bytes
-
https://huggingface.co/StillWorking/sentinel-face-recognition/resolve/main/backend/tests/conftest.py
- Command line
-
hf download hf://StillWorking/sentinel-face-recognition/backend/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/StillWorking/sentinel-face-recognition/resolve/main/backend/tests/conftest.py
242 Bytes
| import sys | |
| from pathlib import Path | |
| # Make the backend package importable when pytest is run from the repo root. | |
| BACKEND_DIR = Path(__file__).resolve().parents[1] | |
| if str(BACKEND_DIR) not in sys.path: | |
| sys.path.insert(0, str(BACKEND_DIR)) | |