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

Method test_dict_entry

tests/planning/test_executor.py:1329–1336  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1327 """Test _parse_tool_call_entry with dict and object formats."""
1328
1329 def test_dict_entry(self):
1330 tc = {
1331 "id": "call_1",
1332 "type": "function",
1333 "function": {"name": "my_tool", "arguments": '{"x": 1}'},
1334 }
1335 result = _parse_tool_call_entry(tc)
1336 assert result == {"name": "my_tool", "args": {"x": 1}}
1337
1338 def test_object_entry(self):
1339 class FuncObj:

Callers

nothing calls this directly

Calls 1

_parse_tool_call_entryFunction · 0.90

Tested by

no test coverage detected