MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / test_shell_tool_call

Method test_shell_tool_call

tests/test_parse_tool_call.py:28–33  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

26 assert result["args"]["path"] == "foo.py"
27
28 def test_shell_tool_call(self):
29 raw = '<tool>\n{"name": "shell", "args": {"command": "python test.py"}}\n</tool>'
30 result = parse_tool_call(raw)
31 assert result is not None
32 assert result["name"] == "shell"
33 assert result["args"]["command"] == "python test.py"
34
35 def test_read_file_tool_call(self):
36 raw = '<tool>{"name": "read_file", "args": {"path": "main.py"}}</tool>'

Callers

nothing calls this directly

Calls 1

parse_tool_callFunction · 0.90

Tested by

no test coverage detected