From 44c9f6dc3811ef82c16fee25575ea66fe8ba7929 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 24 Feb 2026 22:55:46 +0000 Subject: [PATCH] test: fix test_retry_azure_ocr_success to patch process_with_ocr instead of legacy azure task Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- tests/test_api_files_comprehensive.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_api_files_comprehensive.py b/tests/test_api_files_comprehensive.py index c5323e10..655a9335 100644 --- a/tests/test_api_files_comprehensive.py +++ b/tests/test_api_files_comprehensive.py @@ -950,9 +950,7 @@ class TestRetryPipelineSteps: db_session.add(file) db_session.commit() - with patch( - "app.tasks.process_with_azure_document_intelligence.process_with_azure_document_intelligence" - ) as mock_task: + with patch("app.tasks.process_with_ocr.process_with_ocr") as mock_task: mock_task.delay.return_value = Mock(id="task-azure") result = _retry_pipeline_step(file, "process_with_azure_document_intelligence", db_session) assert result["task_id"] == "task-azure"