(self)
| 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>' |
nothing calls this directly
no test coverage detected