Test finish reason capture.
(self)
| 203 | assert state.reasoning_content == "Let me think..." |
| 204 | |
| 205 | def test_finish_reason(self): |
| 206 | """Test finish reason capture.""" |
| 207 | state = StreamingState() |
| 208 | |
| 209 | chunk = StreamingChunk(content="Done", finish_reason="stop") |
| 210 | state.add_chunk(chunk) |
| 211 | |
| 212 | assert state.finish_reason == "stop" |
| 213 | |
| 214 | def test_complete_normal(self): |
| 215 | """Test normal completion.""" |
nothing calls this directly
no test coverage detected