MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_complete_normal

Method test_complete_normal

tests/display/test_models.py:214–225  ·  view source on GitHub ↗

Test normal completion.

(self)

Source from the content-addressed store, hash-verified

212 assert state.finish_reason == "stop"
213
214 def test_complete_normal(self):
215 """Test normal completion."""
216 state = StreamingState()
217 state.add_chunk(StreamingChunk(content="Test"))
218
219 state.complete()
220
221 assert state.phase == StreamingPhase.COMPLETED
222 assert not state.interrupted
223 assert state.is_complete
224 assert not state.is_active
225 assert state.end_time is not None
226
227 def test_complete_interrupted(self):
228 """Test interrupted completion."""

Callers

nothing calls this directly

Calls 4

add_chunkMethod · 0.95
completeMethod · 0.95
StreamingStateClass · 0.90
StreamingChunkClass · 0.90

Tested by

no test coverage detected