Skip to content

Commit 7856550

Browse files
committed
fix test
1 parent f1596ca commit 7856550

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

services/storage/tests/unit/test_dsm_dsmcleaner.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ async def test_clean_expired_uploads_deletes_expired_pending_uploads(
213213
)
214214

215215

216+
@pytest.mark.parametrize(
217+
"location_id",
218+
[SimcoreS3DataManager.get_location_id()],
219+
ids=[SimcoreS3DataManager.get_location_name()],
220+
indirect=True,
221+
)
216222
@pytest.mark.parametrize(
217223
"file_size",
218224
[
@@ -389,9 +395,9 @@ async def test_clean_expired_uploads_does_not_clean_multipart_upload_on_creation
389395
assert len(started_multipart_uploads_upload_id) == len(file_ids_to_upload)
390396

391397
# ensure we have now an upload id
392-
all_ongoing_uploads: list[
393-
tuple[UploadID, SimcoreS3FileID]
394-
] = await storage_s3_client.list_ongoing_multipart_uploads(bucket=storage_s3_bucket)
398+
all_ongoing_uploads: list[tuple[UploadID, SimcoreS3FileID]] = (
399+
await storage_s3_client.list_ongoing_multipart_uploads(bucket=storage_s3_bucket)
400+
)
395401
assert len(all_ongoing_uploads) == len(file_ids_to_upload)
396402

397403
for ongoing_upload_id, ongoing_file_id in all_ongoing_uploads:

0 commit comments

Comments
 (0)