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

Method test_remove_file

tests/test_memory.py:109–113  ·  view source on GitHub ↗

Remove should delete file from working memory.

(self)

Source from the content-addressed store, hash-verified

107 self.assertGreater(self.wm._files["test.py"].last_used_turn, initial_turn)
108
109 def test_remove_file(self):
110 """Remove should delete file from working memory."""
111 self.wm.add("test.py", "content", tokens=5)
112 self.wm.remove("test.py")
113 self.assertIsNone(self.wm.get("test.py"))
114
115 def test_clear(self):
116 """Clear should remove all files."""

Callers

nothing calls this directly

Calls 3

removeMethod · 0.80
addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected