MCPcopy Create free account
hub / github.com/Codeplain-ai/codeplain / test_no_telemetry_env_var_disables

Function test_no_telemetry_env_var_disables

tests/test_telemetry.py:67–73  ·  view source on GitHub ↗
(monkeypatch, transport)

Source from the content-addressed store, hash-verified

65
66
67def test_no_telemetry_env_var_disables(monkeypatch, transport):
68 monkeypatch.setenv(NO_TELEMETRY_ENV_VAR, "1")
69
70 assert not telemetry_enabled()
71 assert not initialize_telemetry(transport=transport)
72 assert not capture_crash(make_exc_info(KeyError("boom")), None, make_args())
73 assert transport.events == []
74
75
76def test_capture_crash_sends_event_with_tags(transport):

Callers

nothing calls this directly

Calls 5

telemetry_enabledFunction · 0.90
initialize_telemetryFunction · 0.90
capture_crashFunction · 0.90
make_exc_infoFunction · 0.85
make_argsFunction · 0.85

Tested by

no test coverage detected