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

Method test_initial_state

tests/display/test_models.py:110–120  ·  view source on GitHub ↗

Test initial state creation.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 1

StreamingStateClass · 0.90

Tested by

no test coverage detected