Test initial state creation.
(self)
| 108 | """Tests for StreamingState model.""" |
| 109 | |
| 110 | def test_initial_state(self): |
| 111 | """Test initial state creation.""" |
| 112 | state = StreamingState() |
| 113 | |
| 114 | assert state.accumulated_content == "" |
| 115 | assert state.chunks_received == 0 |
| 116 | assert state.phase == StreamingPhase.INITIALIZING |
| 117 | assert state.detected_type == ContentType.UNKNOWN |
| 118 | assert not state.interrupted |
| 119 | assert state.is_active |
| 120 | assert not state.is_complete |
| 121 | |
| 122 | def test_add_text_chunk(self): |
| 123 | """Test adding text chunk.""" |
nothing calls this directly
no test coverage detected