diff --git a/surfsense_backend/tests/unit/connector_indexers/test_dropbox_parallel.py b/surfsense_backend/tests/unit/connector_indexers/test_dropbox_parallel.py index f72135d05..9ba87207a 100644 --- a/surfsense_backend/tests/unit/connector_indexers/test_dropbox_parallel.py +++ b/surfsense_backend/tests/unit/connector_indexers/test_dropbox_parallel.py @@ -168,7 +168,7 @@ async def test_concurrency_bounded_by_semaphore( active = 0 peak = 0 - async def _slow_extract(client, file): + async def _slow_extract(client, file, **kwargs): nonlocal active, peak async with lock: active += 1 @@ -209,7 +209,7 @@ async def test_heartbeat_fires_during_parallel_downloads( monkeypatch.setattr(_mod, "HEARTBEAT_INTERVAL_SECONDS", 0) - async def _slow_extract(client, file): + async def _slow_extract(client, file, **kwargs): await asyncio.sleep(0.05) return _mock_extract_ok(file["id"], file["name"]) diff --git a/surfsense_backend/tests/unit/connector_indexers/test_google_drive_parallel.py b/surfsense_backend/tests/unit/connector_indexers/test_google_drive_parallel.py index 0ae096361..7e968514c 100644 --- a/surfsense_backend/tests/unit/connector_indexers/test_google_drive_parallel.py +++ b/surfsense_backend/tests/unit/connector_indexers/test_google_drive_parallel.py @@ -162,7 +162,7 @@ async def test_concurrency_bounded_by_semaphore( active = 0 peak = 0 - async def _slow_extract(client, file): + async def _slow_extract(client, file, **kwargs): nonlocal active, peak async with lock: active += 1 @@ -204,7 +204,7 @@ async def test_heartbeat_fires_during_parallel_downloads( monkeypatch.setattr(_mod, "HEARTBEAT_INTERVAL_SECONDS", 0) - async def _slow_extract(client, file): + async def _slow_extract(client, file, **kwargs): await asyncio.sleep(0.05) return _mock_extract_ok(file["id"], file["name"]) diff --git a/surfsense_backend/tests/unit/connector_indexers/test_onedrive_parallel.py b/surfsense_backend/tests/unit/connector_indexers/test_onedrive_parallel.py index 12a912b03..396d79e73 100644 --- a/surfsense_backend/tests/unit/connector_indexers/test_onedrive_parallel.py +++ b/surfsense_backend/tests/unit/connector_indexers/test_onedrive_parallel.py @@ -162,7 +162,7 @@ async def test_concurrency_bounded_by_semaphore( active = 0 peak = 0 - async def _slow_extract(client, file): + async def _slow_extract(client, file, **kwargs): nonlocal active, peak async with lock: active += 1 @@ -203,7 +203,7 @@ async def test_heartbeat_fires_during_parallel_downloads( monkeypatch.setattr(_mod, "HEARTBEAT_INTERVAL_SECONDS", 0) - async def _slow_extract(client, file): + async def _slow_extract(client, file, **kwargs): await asyncio.sleep(0.05) return _mock_extract_ok(file["id"], file["name"]) diff --git a/surfsense_backend/tests/unit/etl_pipeline/test_etl_pipeline_service.py b/surfsense_backend/tests/unit/etl_pipeline/test_etl_pipeline_service.py index 4e1d603a3..1a94d4263 100644 --- a/surfsense_backend/tests/unit/etl_pipeline/test_etl_pipeline_service.py +++ b/surfsense_backend/tests/unit/etl_pipeline/test_etl_pipeline_service.py @@ -431,7 +431,7 @@ async def test_llamacloud_heif_accepted_only_with_azure_di(tmp_path, mocker): mocker.patch("app.config.config.AZURE_DI_ENDPOINT", None, create=True) mocker.patch("app.config.config.AZURE_DI_KEY", None, create=True) - with pytest.raises(EtlUnsupportedFileError, match="not supported by LLAMACLOUD"): + with pytest.raises(EtlUnsupportedFileError, match="document parser does not support this format"): await EtlPipelineService().extract( EtlRequest(file_path=str(heif_file), filename="photo.heif") )