MCPcopy
hub / github.com/tirth8205/code-review-graph / store

Function store

tests/test_fts_sync.py:14–21  ·  view source on GitHub ↗

Create a temporary GraphStore for testing.

()

Source from the content-addressed store, hash-verified

12
13@pytest.fixture
14def store():
15 """Create a temporary GraphStore for testing."""
16 with tempfile.NamedTemporaryFile(suffix=".db", delete=False) as tmp:
17 db_path = tmp.name
18 store = GraphStore(db_path)
19 yield store
20 store.close()
21 Path(db_path).unlink(missing_ok=True)
22
23class TestFTSSync:
24 def test_fts_rebuild_syncs_with_nodes(self, store):

Callers

nothing calls this directly

Calls 2

closeMethod · 0.95
GraphStoreClass · 0.90

Tested by

no test coverage detected