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

Method test_unique_patch

tests/test_patch.py:20–23  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 _history.clear()
19
20 def test_unique_patch(self):
21 res = tool_patch_file(str(self.test_file), "line 1", "LINE 1")
22 self.assertIn("Patched", res)
23 self.assertEqual(self.test_file.read_text(), "LINE 1\nline 2\nline 2\nline 3")
24
25 def test_collision(self):
26 res = tool_patch_file(str(self.test_file), "line 2", "LINE 2")

Callers

nothing calls this directly

Calls 1

tool_patch_fileFunction · 0.90

Tested by

no test coverage detected