Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ArzelaAscoIi committed May 6, 2024
1 parent 12571e6 commit f1cce3f
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions tests/unit/service/test_files_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f1cce3f

Please sign in to comment.