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

Method test_add_and_get

tests/test_memory.py:89–93  ·  view source on GitHub ↗

Add file and retrieve content.

(self)

Source from the content-addressed store, hash-verified

87 self.wm = WorkingMemory(max_tokens=MAX_FILE_CONTEXT_TOKENS)
88
89 def test_add_and_get(self):
90 """Add file and retrieve content."""
91 self.wm.add("test.py", "print('hello')", tokens=5)
92 content = self.wm.get("test.py")
93 self.assertEqual(content, "print('hello')")
94
95 def test_get_nonexistent_returns_none(self):
96 """Getting nonexistent file returns None."""

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected