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

Method test_from_completed_state

tests/display/test_models.py:298–307  ·  view source on GitHub ↗

Test update from completed state.

(self)

Source from the content-addressed store, hash-verified

296 assert update.show_spinner is True
297
298 def test_from_completed_state(self):
299 """Test update from completed state."""
300 state = StreamingState()
301 state.add_chunk(StreamingChunk(content="Done"))
302 state.complete()
303
304 update = DisplayUpdate.from_state(state)
305
306 assert update.phase == StreamingPhase.COMPLETED
307 assert update.show_spinner is False
308
309 def test_update_with_reasoning(self):
310 """Test update includes reasoning content."""

Callers

nothing calls this directly

Calls 5

add_chunkMethod · 0.95
completeMethod · 0.95
StreamingStateClass · 0.90
StreamingChunkClass · 0.90
from_stateMethod · 0.80

Tested by

no test coverage detected