2860fb5d18
Security / Dependency review (push) Has been skipped
Scorecard / Scorecard analysis (push) Failing after 0s
Validate / eval (push) Failing after 0s
Security / Dependency audit (push) Failing after 1s
Security / Secret scan (push) Failing after 1s
Validate / tests (push) Failing after 0s
Validate / mcp-tests (push) Failing after 1s
GitHub Actions Security Analysis with zizmor 🌈 / zizmor (push) Failing after 1s
Security / SAST scan (push) Failing after 13m52s
15 lines
464 B
Python
15 lines
464 B
Python
from lib import env
|
|
|
|
|
|
def test_include_sources_defaults_to_empty_string(monkeypatch, tmp_path):
|
|
# Ensure the env var is not set
|
|
monkeypatch.delenv("INCLUDE_SOURCES", raising=False)
|
|
|
|
# Avoid reading any real user config file by patching the resolved module path directly
|
|
monkeypatch.setattr(env, "CONFIG_FILE", tmp_path / "does-not-exist.env")
|
|
|
|
cfg = env.get_config()
|
|
|
|
assert "INCLUDE_SOURCES" in cfg
|
|
assert cfg["INCLUDE_SOURCES"] == ""
|