Skip to content

Commit 1756aca

Browse files
committed
fixed tests
1 parent da2d07d commit 1756aca

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

services/storage/tests/unit/test_handlers_files.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,12 @@ async def test_download_file_the_file_is_missing_from_the_directory(
11761176
assert missing_s3_file_id in error["errors"][0]
11771177

11781178

1179+
@pytest.mark.parametrize(
1180+
"location_id",
1181+
[SimcoreS3DataManager.get_location_id()],
1182+
ids=[SimcoreS3DataManager.get_location_name()],
1183+
indirect=True,
1184+
)
11791185
async def test_download_file_access_rights(
11801186
initialized_app: FastAPI,
11811187
client: httpx.AsyncClient,
@@ -1209,6 +1215,12 @@ async def test_download_file_access_rights(
12091215
assert "Insufficient access rights" in error["errors"][0]
12101216

12111217

1218+
@pytest.mark.parametrize(
1219+
"location_id",
1220+
[SimcoreS3DataManager.get_location_id()],
1221+
ids=[SimcoreS3DataManager.get_location_name()],
1222+
indirect=True,
1223+
)
12121224
@pytest.mark.parametrize(
12131225
"file_size",
12141226
[
@@ -1257,6 +1269,12 @@ async def test_delete_file(
12571269
)
12581270

12591271

1272+
@pytest.mark.parametrize(
1273+
"location_id",
1274+
[SimcoreS3DataManager.get_location_id()],
1275+
ids=[SimcoreS3DataManager.get_location_name()],
1276+
indirect=True,
1277+
)
12601278
async def test_copy_as_soft_link(
12611279
initialized_app: FastAPI,
12621280
client: httpx.AsyncClient,
@@ -1549,6 +1567,12 @@ async def test_upload_file_is_directory_and_remove_content(
15491567
assert len(files_and_directories) == 0
15501568

15511569

1570+
@pytest.mark.parametrize(
1571+
"location_id",
1572+
[SimcoreS3DataManager.get_location_id()],
1573+
ids=[SimcoreS3DataManager.get_location_name()],
1574+
indirect=True,
1575+
)
15521576
@pytest.mark.parametrize("files_count", [1002])
15531577
async def test_listing_more_than_1000_objects_in_bucket(
15541578
create_directory_with_files: Callable[

0 commit comments

Comments
 (0)