Create a temporary GraphStore for testing.
()
| 12 | |
| 13 | @pytest.fixture |
| 14 | def 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 | |
| 23 | class TestFTSSync: |
| 24 | def test_fts_rebuild_syncs_with_nodes(self, store): |
nothing calls this directly
no test coverage detected