Point telemetry at tmp_path and reset state.
(tmp_path)
| 9 | |
| 10 | |
| 11 | def _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 ─── |
no test coverage detected