Set up a temp dir with .git and .code-review-graph, seed clustered graph.
(self)
| 868 | """Tests for community-related MCP tool functions.""" |
| 869 | |
| 870 | def setup_method(self): |
| 871 | """Set up a temp dir with .git and .code-review-graph, seed clustered graph.""" |
| 872 | self.tmp_dir = tempfile.mkdtemp() |
| 873 | self.root = Path(self.tmp_dir).resolve() |
| 874 | |
| 875 | # Create markers so _validate_repo_root accepts this directory |
| 876 | (self.root / ".git").mkdir() |
| 877 | (self.root / ".code-review-graph").mkdir() |
| 878 | |
| 879 | db_path = str(self.root / ".code-review-graph" / "graph.db") |
| 880 | self.store = GraphStore(db_path) |
| 881 | self._seed_data() |
| 882 | self._build_communities() |
| 883 | |
| 884 | def teardown_method(self): |
| 885 | self.store.close() |
nothing calls this directly
no test coverage detected