Spaces:
Sleeping
Sleeping
Download tests/helpers.py from OrganizedProgrammers/SERPent: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/OrganizedProgrammers/SERPent/resolve/main/tests/helpers.py
- Command line
-
hf download hf://spaces/OrganizedProgrammers/SERPent/tests/helpers.py
-
curl -L -o helpers.py https://huggingface.co/spaces/OrganizedProgrammers/SERPent/resolve/main/tests/helpers.py
302 Bytes
| """Shared test helpers: fixture loading.""" | |
| from pathlib import Path | |
| FIXTURES_DIR = Path(__file__).resolve().parent / "fixtures" | |
| def load_fixture(*parts: str) -> str: | |
| """Read a text fixture from tests/fixtures/<parts...>.""" | |
| return FIXTURES_DIR.joinpath(*parts).read_text(encoding="utf-8") | |