From 8828b710315ba0c5add8546842c05c3f46cb98ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 23 Feb 2026 23:00:45 +0000 Subject: [PATCH] fix(tests): update process_document test patches to use process_with_ocr Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- tests/test_process_document.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_process_document.py b/tests/test_process_document.py index ec3e65f8..ce4d2149 100644 --- a/tests/test_process_document.py +++ b/tests/test_process_document.py @@ -220,7 +220,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, ): # Setup mocks mock_settings.workdir = str(tmp_path) @@ -235,7 +235,7 @@ startxref assert result["status"] == "Queued for OCR" assert "file_id" in result - # Verify that process_with_azure_document_intelligence was called with file_id + # Verify that process_with_ocr was called with file_id mock_azure.delay.assert_called_once() call_args = mock_azure.delay.call_args @@ -618,7 +618,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, ): # Setup mocks mock_settings.workdir = str(tmp_path) @@ -633,7 +633,7 @@ startxref assert result["status"] == "Queued for forced OCR" assert "file_id" in result - # Verify that process_with_azure_document_intelligence was called + # Verify that process_with_ocr was called mock_azure.delay.assert_called_once()