Spaces:
Running
Running
Download tests/test_settings.py from AItoolstack/AI-PolicyTrace: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/AItoolstack/AI-PolicyTrace/resolve/main/tests/test_settings.py
- Command line
-
hf download hf://spaces/AItoolstack/AI-PolicyTrace/tests/test_settings.py
-
curl -L -o test_settings.py https://huggingface.co/spaces/AItoolstack/AI-PolicyTrace/resolve/main/tests/test_settings.py
401 Bytes
| """Guards on the shipped configuration.""" | |
| from pathlib import Path | |
| import yaml | |
| _SETTINGS = Path(__file__).resolve().parent.parent / "config" / "settings.yaml" | |
| def test_debug_artifacts_are_off_by_default(): | |
| """Debug artifacts include unmasked document text, so they must be opt-in.""" | |
| cfg = yaml.safe_load(_SETTINGS.read_text(encoding="utf-8")) | |
| assert cfg["debug"]["enabled"] is False | |