Skip to content

Commit db4953b

Browse files
committed
fix(tests): restore ingest_codebase's graph and cypher modules after the NullProgress test
test_null_progress_does_not_alter_handler_result assigned icb.graphmod.ensure_graph and icb.cypher.fetch_files directly, so the real ingest_codebase_graph and ingest_codebase_cypher modules kept the fakes for the rest of the session. Run before test_ingest_codebase.py (the order mutmut's clean run uses), 8 handler tests failed, and the diff-scoped mutation gate stopped with "Failed to run clean test" (check `unit`, run 42051227576). The test now swaps the module references through monkeypatch, as the stage-ordering test above does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018kyZYs2Ko7tuSGHN7Qfbf7
1 parent 5ed7909 commit db4953b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests_py/test_ingest_progress.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,13 @@ async def test_null_progress_does_not_alter_handler_result(
314314
async def _fake_ensure_graph(*args: Any, **kwargs: Any):
315315
return "/tmp/graph", {"reused_cached": False, "node_count": 0}
316316

317+
monkeypatch.setattr(icb, "graphmod", MagicMock())
317318
icb.graphmod.ensure_graph = _fake_ensure_graph
318319

319320
async def _fake_fetch_files(*args: Any, **kwargs: Any):
320321
return [], []
321322

323+
monkeypatch.setattr(icb, "cypher", MagicMock())
322324
icb.cypher.fetch_files = _fake_fetch_files
323325

324326
async def _fake_ingest_entities(*args: Any, **kwargs: Any):

0 commit comments

Comments
 (0)