MCPcopy
hub / github.com/Fosowl/agenticSeek / test_clear

Method test_clear

tests/test_memory.py:55–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self.assertEqual(self.memory.memory[1]['content'], "Hello")
54
55 def test_clear(self):
56 self.memory.push("user", "Hello")
57 self.memory.clear()
58 self.assertEqual(len(self.memory.memory), 1) # doesn't clear sys message
59
60 def test_clear_section(self):
61 self.memory.clear()

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected