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

Method test_complete_interrupted

tests/display/test_models.py:227–236  ·  view source on GitHub ↗

Test interrupted completion.

(self)

Source from the content-addressed store, hash-verified

225 assert state.end_time is not None
226
227 def test_complete_interrupted(self):
228 """Test interrupted completion."""
229 state = StreamingState()
230 state.add_chunk(StreamingChunk(content="Test"))
231
232 state.complete(interrupted=True)
233
234 assert state.phase == StreamingPhase.INTERRUPTED
235 assert state.interrupted
236 assert state.is_complete
237
238 def test_mark_error(self):
239 """Test error state."""

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