(self)
| 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") |