Commit 0928d23
test(sessions): tighten v0 error_message truncation assertions per review
- Replace <= with == in the truncation test: the guard is deterministic
so the result should be exactly 255 chars, not merely at most 255
- Assert the concrete expected string ("x" * 241 + "...[truncated]")
rather than importing private module symbols, reducing coupling to
internal implementation details
- Add test_from_event_with_none_error_message to cover the falsy branch
of the truncation condition and document that None passes through
unchanged1 parent f95ac48 commit 0928d23
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
0 commit comments