Spaces:
Sleeping
Sleeping
Download tests/core/survey/conftest.py from thanhnv2323/humanize-text-python: direct link, hf CLI and curl.
- Browser
- Download file 360 Bytes
-
https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/tests/core/survey/conftest.py
- Command line
-
hf download hf://spaces/thanhnv2323/humanize-text-python/tests/core/survey/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/thanhnv2323/humanize-text-python/resolve/main/tests/core/survey/conftest.py
360 Bytes
| """Local path setup and deterministic env for survey tests.""" | |
| import sys | |
| from pathlib import Path | |
| import pytest | |
| ROOT = Path(__file__).resolve().parents[3] | |
| if str(ROOT) not in sys.path: | |
| sys.path.insert(0, str(ROOT)) | |
| def _force_stub_llm(monkeypatch: pytest.MonkeyPatch): | |
| monkeypatch.setenv("ADSP_LLM_BACKEND", "stub") | |