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

Method test_get_arguments_dict

tests/chat/test_models.py:61–65  ·  view source on GitHub ↗

Test parsing arguments to dict.

(self)

Source from the content-addressed store, hash-verified

59 assert fc.arguments == '{"x": 18}'
60
61 def test_get_arguments_dict(self):
62 """Test parsing arguments to dict."""
63 fc = FunctionCallData(name="sqrt", arguments='{"x": 18}')
64 args = fc.get_arguments_dict()
65 assert args == {"x": 18}
66
67 def test_get_arguments_dict_invalid_json(self):
68 """Test get_arguments_dict with invalid JSON."""

Callers

nothing calls this directly

Calls 2

get_arguments_dictMethod · 0.95
FunctionCallDataClass · 0.90

Tested by

no test coverage detected