diff --git a/tests/unit/service/test_files_service.py b/tests/unit/service/test_files_service.py index 5490faf3..cfe4a23f 100644 --- a/tests/unit/service/test_files_service.py +++ b/tests/unit/service/test_files_service.py @@ -685,22 +685,20 @@ async def test_download_files_with_filter_and_progress_bar( self, file_service: FilesService, monkeypatch: MonkeyPatch ) -> None: mocked_list_paginated = AsyncMock( - return_value=[ - FileList( - total=1, - data=[ - File( - file_id=UUID("cd16435f-f6eb-423f-bf6f-994dc8a36a10"), - url="/api/v1/workspaces/search tests/files/cd16435f-f6eb-423f-bf6f-994dc8a36a10", - name="silly_things_2.txt", - size=611, - created_at=datetime.datetime.fromisoformat("2022-06-21T16:40:00.634653+00:00"), - meta={}, - ) - ], - has_more=False, - ), - ] + return_value=FileList( + total=1, + data=[ + File( + file_id=UUID("cd16435f-f6eb-423f-bf6f-994dc8a36a10"), + url="/api/v1/workspaces/search tests/files/cd16435f-f6eb-423f-bf6f-994dc8a36a10", + name="silly_things_2.txt", + size=611, + created_at=datetime.datetime.fromisoformat("2022-06-21T16:40:00.634653+00:00"), + meta={}, + ) + ], + has_more=False, + ), ) monkeypatch.setattr(file_service._files, "list_paginated", mocked_list_paginated)