MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_explicit_config_respected_in_ci

Function test_explicit_config_respected_in_ci

tests/test_telemetry.py:59–65  ·  view source on GitHub ↗

User who explicitly enabled should stay enabled even in CI.

(tmp_path)

Source from the content-addressed store, hash-verified

57
58
59def test_explicit_config_respected_in_ci(tmp_path):
60 """User who explicitly enabled should stay enabled even in CI."""
61 _reset(tmp_path)
62 telem.enable()
63 os.environ["CI"] = "true"
64 assert telem.is_enabled() # explicit config wins over CI
65 os.environ.pop("CI")
66
67
68# ─── Record Building ───

Callers

nothing calls this directly

Calls 2

_resetFunction · 0.85
popMethod · 0.80

Tested by

no test coverage detected