Download tests/conftest.py from InternsProgressUpdate/Venket: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/InternsProgressUpdate/Venket/resolve/main/tests/conftest.py
- Command line
-
hf download hf://InternsProgressUpdate/Venket/tests/conftest.py
-
curl -L -o conftest.py https://huggingface.co/InternsProgressUpdate/Venket/resolve/main/tests/conftest.py
644 Bytes
| """Shared pytest fixtures pointing at the project's real bundled assets.""" | |
| from __future__ import annotations | |
| from pathlib import Path | |
| import pytest | |
| PROJECT_ROOT = Path(__file__).resolve().parents[1] | |
| def project_root() -> Path: | |
| return PROJECT_ROOT | |
| def image_dir(project_root: Path) -> Path: | |
| return project_root / "image" | |
| def dataset_dir(project_root: Path) -> Path: | |
| return project_root / "dataset" | |
| def annotations_dir(project_root: Path) -> Path: | |
| return project_root / "annotations" | |