MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_by_query

Method test_by_query

tests/memory/test_store.py:61–67  ·  view source on GitHub ↗
(self, store: MemoryScopeStore)

Source from the content-addressed store, hash-verified

59 assert entries[0].content == "found it"
60
61 def test_by_query(self, store: MemoryScopeStore):
62 store.remember(MemoryScope.GLOBAL, "lang", "Python is great")
63 store.remember(MemoryScope.GLOBAL, "editor", "vim")
64
65 entries = store.recall(scope=MemoryScope.GLOBAL, query="python")
66 assert len(entries) == 1
67 assert entries[0].key == "lang"
68
69 def test_by_query_matches_key(self, store: MemoryScopeStore):
70 store.remember(MemoryScope.GLOBAL, "python_version", "3.12")

Callers

nothing calls this directly

Calls 2

rememberMethod · 0.80
recallMethod · 0.80

Tested by

no test coverage detected