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

Method test_different_workspaces

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

Source from the content-addressed store, hash-verified

133
134class TestWorkspaceScoping:
135 def test_different_workspaces(self, tmp_path: Path):
136 store_a = MemoryScopeStore(base_dir=tmp_path, workspace_dir="/project/a")
137 store_b = MemoryScopeStore(base_dir=tmp_path, workspace_dir="/project/b")
138
139 store_a.remember(MemoryScope.WORKSPACE, "framework", "django")
140 store_b.remember(MemoryScope.WORKSPACE, "framework", "flask")
141
142 assert store_a.list_entries(MemoryScope.WORKSPACE)[0].content == "django"
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")

Callers

nothing calls this directly

Calls 3

rememberMethod · 0.95
list_entriesMethod · 0.95
MemoryScopeStoreClass · 0.90

Tested by

no test coverage detected