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

Method test_chunk_is_immutable

tests/display/test_models.py:99–104  ·  view source on GitHub ↗

Test that chunks are frozen.

(self)

Source from the content-addressed store, hash-verified

97 assert chunk.reasoning_content is None
98
99 def test_chunk_is_immutable(self):
100 """Test that chunks are frozen."""
101 chunk = StreamingChunk(content="test")
102
103 with pytest.raises(Exception): # Pydantic ValidationError
104 chunk.content = "modified"
105
106
107class TestStreamingState:

Callers

nothing calls this directly

Calls 1

StreamingChunkClass · 0.90

Tested by

no test coverage detected