From 7fdd8a4d3fa3af3633e7c58862a5e26aa18050d4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 23:09:55 +0000 Subject: [PATCH] fix(tests): update process_with_azure patch target in test_storage_reorganization Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- tests/test_storage_reorganization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_storage_reorganization.py b/tests/test_storage_reorganization.py index cb6bc7c6..df370d88 100644 --- a/tests/test_storage_reorganization.py +++ b/tests/test_storage_reorganization.py @@ -352,7 +352,7 @@ startxref patch("app.tasks.process_document.SessionLocal") as mock_session_local, patch("app.tasks.process_document.settings") as mock_settings, patch("app.tasks.process_document.log_task_progress"), - patch("app.tasks.process_document.process_with_azure_document_intelligence") as mock_azure, + patch("app.tasks.process_document.process_with_ocr") as mock_azure, ): mock_settings.workdir = str(tmp_path) mock_session_local.return_value.__enter__.return_value = db_session @@ -362,6 +362,6 @@ startxref # Process with force_cloud_ocr=True result = process_document(str(test_pdf), force_cloud_ocr=True) - # Should queue Azure OCR, not local extraction + # Should queue OCR, not local extraction mock_azure.delay.assert_called_once() assert result["status"] == "Queued for forced OCR"