(self)
| 42 | """Tests for the StreamingResponse Pydantic model.""" |
| 43 | |
| 44 | def test_defaults(self): |
| 45 | sr = StreamingResponse(content="hello", elapsed_time=1.0) |
| 46 | assert sr.content == "hello" |
| 47 | assert sr.tool_calls == [] |
| 48 | assert sr.chunks_received == 0 |
| 49 | assert sr.elapsed_time == 1.0 |
| 50 | assert sr.interrupted is False |
| 51 | assert sr.reasoning_content is None |
| 52 | assert sr.streaming is True |
| 53 | |
| 54 | def test_full_construction(self): |
| 55 | sr = StreamingResponse( |
nothing calls this directly
no test coverage detected