Test that chunks are frozen.
(self)
| 97 | assert chunk.reasoning_content is None |
| 98 | |
| 99 | def test_chunk_is_immutable(self): |
| 100 | """Test that chunks are frozen.""" |
| 101 | chunk = StreamingChunk(content="test") |
| 102 | |
| 103 | with pytest.raises(Exception): # Pydantic ValidationError |
| 104 | chunk.content = "modified" |
| 105 | |
| 106 | |
| 107 | class TestStreamingState: |
nothing calls this directly
no test coverage detected