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

Method test_touch_updates_metadata

tests/test_memory.py:100–107  ·  view source on GitHub ↗

Touch should update last_used_turn.

(self)

Source from the content-addressed store, hash-verified

98 self.assertIsNone(result)
99
100 def test_touch_updates_metadata(self):
101 """Touch should update last_used_turn."""
102 self.wm.add("test.py", "content", tokens=5)
103 initial_turn = self.wm._files["test.py"].last_used_turn
104 self.wm.tick()
105 self.wm.tick()
106 self.wm.touch("test.py")
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."""

Callers

nothing calls this directly

Calls 3

touchMethod · 0.80
addMethod · 0.45
tickMethod · 0.45

Tested by

no test coverage detected