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

Function test_capture_crash_without_user_email

tests/test_telemetry.py:102–111  ·  view source on GitHub ↗
(transport)

Source from the content-addressed store, hash-verified

100
101
102def test_capture_crash_without_user_email(transport):
103 init_with_transport(transport)
104
105 run_state = RunState(spec_filename="test.plain")
106
107 assert capture_crash(make_exc_info(KeyError("boom")), run_state, make_args())
108 sentry_sdk.flush(timeout=2)
109
110 assert len(transport.events) == 1
111 assert "email" not in transport.events[0].get("user", {})
112
113
114def test_capture_crash_without_run_state(transport):

Callers

nothing calls this directly

Calls 5

RunStateClass · 0.90
capture_crashFunction · 0.90
init_with_transportFunction · 0.85
make_exc_infoFunction · 0.85
make_argsFunction · 0.85

Tested by

no test coverage detected