Commit 7a3a883
fix: correct TypeError test to actually exercise exception handler
The test_measure_time_to_first_review_type_error_path test was passing
but not actually reaching the except TypeError block. The MagicMock
review's submitted_at (a MagicMock, not a datetime) caused
ignore_comment to skip the review as 'pending', so first_review_time
stayed None and the function returned before the TypeError could occur.
Use side_effect to raise TypeError directly from the reviews() call,
which properly exercises the exception handling path.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 8bd2f25 commit 7a3a883
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
0 commit comments