(self, tmp_path: Path)
| 133 | |
| 134 | class 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") |
nothing calls this directly
no test coverage detected