MCPcopy Create free account
hub / github.com/bytedance/trae-agent / test_invalid_command

Method test_invalid_command

tests/tools/test_edit_tool.py:66–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.assertIn("edited", result.output)
65
66 async def test_invalid_command(self):
67 result = await self.tool.execute(
68 ToolCallArguments({"command": "invalid", "path": str(self.test_file.absolute())})
69 )
70 self.assertEqual(result.error_code, -1)
71 self.assertIn("Please provide a valid path", result.error)
72
73 async def test_str_replace_multiple_occurrences(self):
74 self.mock_file_system(content="dup\ndup\nline3")

Callers

nothing calls this directly

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected