AI-PolicyTrace / tests /test_settings.py
AItoolstack's picture
Turn debug artifacts off by default and keep them inside the session
68bb068 verified
Raw History Blame Contribute Delete
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