fix(test): correct patch target for CorrectionService in M3 e2e helper

The CorrectionService import in plan.py is a lazy import inside the
correct() function body, so it does not exist as a module-level attribute.
Patch the class at its definition site instead:
  cleveragents.application.services.correction_service.CorrectionService

Fixes CI integration_tests failure for PR #439.
This commit is contained in:
2026-02-25 22:00:39 +00:00
parent aeb5cc5110
commit 2e53caaef1
+1 -1
View File
@@ -550,7 +550,7 @@ def correction_dry_run() -> None:
with (
patch(
"cleveragents.cli.commands.plan.CorrectionService",
"cleveragents.application.services.correction_service.CorrectionService",
return_value=mock_correction_svc,
),
patch(