Test adding text chunk.
(self)
| 120 | assert not state.is_complete |
| 121 | |
| 122 | def test_add_text_chunk(self): |
| 123 | """Test adding text chunk.""" |
| 124 | state = StreamingState() |
| 125 | chunk = StreamingChunk(content="Hello ") |
| 126 | |
| 127 | state.add_chunk(chunk) |
| 128 | |
| 129 | assert state.accumulated_content == "Hello " |
| 130 | assert state.chunks_received == 1 |
| 131 | assert state.phase == StreamingPhase.RECEIVING |
| 132 | |
| 133 | def test_add_multiple_chunks(self): |
| 134 | """Test adding multiple chunks.""" |
nothing calls this directly
no test coverage detected