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

Method test_global_shared

tests/memory/test_store.py:145–153  ·  view source on GitHub ↗
(self, tmp_path: Path)

Source from the content-addressed store, hash-verified

143 assert store_b.list_entries(MemoryScope.WORKSPACE)[0].content == "flask"
144
145 def test_global_shared(self, tmp_path: Path):
146 store_a = MemoryScopeStore(base_dir=tmp_path, workspace_dir="/project/a")
147 store_b = MemoryScopeStore(base_dir=tmp_path, workspace_dir="/project/b")
148
149 store_a.remember(MemoryScope.GLOBAL, "editor", "vim")
150
151 entries = store_b.list_entries(MemoryScope.GLOBAL)
152 assert len(entries) == 1
153 assert entries[0].content == "vim"
154
155
156class TestMaxEntries:

Callers

nothing calls this directly

Calls 3

rememberMethod · 0.95
list_entriesMethod · 0.95
MemoryScopeStoreClass · 0.90

Tested by

no test coverage detected