Skip to content

Commit fd17f78

Browse files
committed
Fixes new mocks with asyncio
1 parent ba0dee0 commit fd17f78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/simcore-sdk/tests/unit/test_data_manager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ async def test_pull_folder(
162162
mock_filemanager = mocker.patch(
163163
"simcore_sdk.node_data.data_manager.filemanager", spec=True
164164
)
165-
mock_filemanager.download_file_from_s3.return_value = Future()
166-
mock_filemanager.download_file_from_s3.return_value.set_result(fake_zipped_folder)
165+
mock_filemanager.download_file_from_s3.return_value = fake_zipped_folder
167166
mock_config = mocker.patch("simcore_sdk.node_data.data_manager.config", spec=True)
168167
mock_config.PROJECT_ID = "some funky ID"
169168
mock_config.NODE_UUID = "another funky ID"

0 commit comments

Comments
 (0)