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

Method test_finish_reason

tests/display/test_models.py:205–212  ·  view source on GitHub ↗

Test finish reason capture.

(self)

Source from the content-addressed store, hash-verified

203 assert state.reasoning_content == "Let me think..."
204
205 def test_finish_reason(self):
206 """Test finish reason capture."""
207 state = StreamingState()
208
209 chunk = StreamingChunk(content="Done", finish_reason="stop")
210 state.add_chunk(chunk)
211
212 assert state.finish_reason == "stop"
213
214 def test_complete_normal(self):
215 """Test normal completion."""

Callers

nothing calls this directly

Calls 3

add_chunkMethod · 0.95
StreamingStateClass · 0.90
StreamingChunkClass · 0.90

Tested by

no test coverage detected