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

Method test_defaults

tests/chat/test_streaming_handler.py:44–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 """Tests for the StreamingResponse Pydantic model."""
43
44 def test_defaults(self):
45 sr = StreamingResponse(content="hello", elapsed_time=1.0)
46 assert sr.content == "hello"
47 assert sr.tool_calls == []
48 assert sr.chunks_received == 0
49 assert sr.elapsed_time == 1.0
50 assert sr.interrupted is False
51 assert sr.reasoning_content is None
52 assert sr.streaming is True
53
54 def test_full_construction(self):
55 sr = StreamingResponse(

Callers

nothing calls this directly

Calls 1

StreamingResponseClass · 0.90

Tested by

no test coverage detected