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

Method test_from_dict_args

tests/chat/test_models.py:79–83  ·  view source on GitHub ↗

Test creating from dict arguments.

(self)

Source from the content-addressed store, hash-verified

77 assert args == {}
78
79 def test_from_dict_args(self):
80 """Test creating from dict arguments."""
81 fc = FunctionCallData.from_dict_args("sqrt", {"x": 18})
82 assert fc.name == "sqrt"
83 assert json.loads(fc.arguments) == {"x": 18}
84
85
86class TestToolCallData:

Callers

nothing calls this directly

Calls 1

from_dict_argsMethod · 0.80

Tested by

no test coverage detected