(transport)
| 100 | |
| 101 | |
| 102 | def 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 | |
| 114 | def test_capture_crash_without_run_state(transport): |
nothing calls this directly
no test coverage detected