Skip to content

Commit d54efc7

Browse files
author
Andrei Neagu
committed
refactor
1 parent 2efadc0 commit d54efc7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/storage/tests/unit/test_simcore_s3_dsm.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,11 @@ async def test_create_s3_export(
243243
cleanup_files_closure: Callable[[SimcoreS3FileID], None],
244244
):
245245
initial_fmd_count = await _get_fmds_count(sqlalchemy_async_engine)
246-
selection_to_export = _get_folder_and_files_selection(paths_for_export)
246+
all_files_to_export = _get_folder_and_files_selection(paths_for_export)
247+
selection_to_export = {
248+
S3ObjectKey(project_id)
249+
for project_id in {Path(p).parents[-2] for p in all_files_to_export}
250+
}
247251

248252
reports: list[ProgressReport] = []
249253

0 commit comments

Comments
 (0)