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

Function _reset

tests/test_telemetry.py:11–16  ·  view source on GitHub ↗

Point telemetry at tmp_path and reset state.

(tmp_path)

Source from the content-addressed store, hash-verified

9
10
11def _reset(tmp_path):
12 """Point telemetry at tmp_path and reset state."""
13 telem._config_dir = lambda: tmp_path
14 # Clear any env vars
15 for key in ("DO_NOT_TRACK", "UNCOMMON_ROUTE_TELEMETRY", "CI"):
16 os.environ.pop(key, None)
17
18
19# ─── Opt-In Logic ───

Calls 1

popMethod · 0.80

Tested by

no test coverage detected