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

Method test_from_dict_defaults

tests/chat/test_models.py:121–127  ·  view source on GitHub ↗

Test from_dict with missing fields.

(self)

Source from the content-addressed store, hash-verified

119 assert tc.function.name == "sqrt"
120
121 def test_from_dict_defaults(self):
122 """Test from_dict with missing fields."""
123 data = {}
124 tc = ToolCallData.from_dict(data)
125 assert tc.id == ""
126 assert tc.type == "function"
127 assert tc.index == 0
128
129 def test_merge_chunk_name(self):
130 """Test merging chunk with name."""

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected