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

Method test_reasoning_content

tests/display/test_models.py:196–203  ·  view source on GitHub ↗

Test reasoning content accumulation.

(self)

Source from the content-addressed store, hash-verified

194 assert state.detected_type == ContentType.CODE
195
196 def test_reasoning_content(self):
197 """Test reasoning content accumulation."""
198 state = StreamingState()
199
200 chunk = StreamingChunk(content="Answer", reasoning_content="Let me think...")
201 state.add_chunk(chunk)
202
203 assert state.reasoning_content == "Let me think..."
204
205 def test_finish_reason(self):
206 """Test finish reason capture."""

Callers

nothing calls this directly

Calls 3

add_chunkMethod · 0.95
StreamingStateClass · 0.90
StreamingChunkClass · 0.90

Tested by

no test coverage detected