From 2e53caaef126dc43716a0e0c3d5679b7073c8ec4 Mon Sep 17 00:00:00 2001 From: "Brent E. Edwards" Date: Wed, 25 Feb 2026 22:00:39 +0000 Subject: [PATCH] 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. --- robot/helper_m3_e2e_verification.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/robot/helper_m3_e2e_verification.py b/robot/helper_m3_e2e_verification.py index ecdb4d20..252828fe 100644 --- a/robot/helper_m3_e2e_verification.py +++ b/robot/helper_m3_e2e_verification.py @@ -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(