Skip to content

Commit d16517b

Browse files
committed
test passing
1 parent 6fe4744 commit d16517b

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

services/storage/tests/unit/test_handlers_files_metadata.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ async def __call__(
4141
) -> None: ...
4242

4343

44+
@pytest.mark.parametrize(
45+
"location_id",
46+
[SimcoreS3DataManager.get_location_id()],
47+
ids=[SimcoreS3DataManager.get_location_name()],
48+
indirect=True,
49+
)
4450
async def test_list_files_metadata(
4551
upload_file: Callable[[ByteSize, str], Awaitable[tuple[Path, SimcoreS3FileID]]],
4652
create_project_access_rights: CreateProjectAccessRightsCallable,

services/storage/tests/unit/test_handlers_simcore_s3.py

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@ def short_dsm_cleaner_interval(monkeypatch: pytest.MonkeyPatch) -> int:
209209
return 1
210210

211211

212+
@pytest.mark.parametrize(
213+
"location_id",
214+
[SimcoreS3DataManager.get_location_id()],
215+
ids=[SimcoreS3DataManager.get_location_name()],
216+
indirect=True,
217+
)
212218
@pytest.mark.parametrize(
213219
"project_params",
214220
[
@@ -285,6 +291,12 @@ async def test_copy_folders_from_valid_project_with_one_large_file(
285291
)
286292

287293

294+
@pytest.mark.parametrize(
295+
"location_id",
296+
[SimcoreS3DataManager.get_location_id()],
297+
ids=[SimcoreS3DataManager.get_location_name()],
298+
indirect=True,
299+
)
288300
@pytest.mark.parametrize(
289301
"project_params",
290302
[
@@ -461,6 +473,12 @@ async def test_connect_to_external(
461473
print(data)
462474

463475

476+
@pytest.mark.parametrize(
477+
"location_id",
478+
[SimcoreS3DataManager.get_location_id()],
479+
ids=[SimcoreS3DataManager.get_location_name()],
480+
indirect=True,
481+
)
464482
@pytest.mark.parametrize(
465483
"project_params",
466484
[
@@ -498,6 +516,12 @@ async def test_create_and_delete_folders_from_project(
498516
)
499517

500518

519+
@pytest.mark.parametrize(
520+
"location_id",
521+
[SimcoreS3DataManager.get_location_id()],
522+
ids=[SimcoreS3DataManager.get_location_name()],
523+
indirect=True,
524+
)
501525
@pytest.mark.parametrize(
502526
"project_params",
503527
[
@@ -581,6 +605,12 @@ async def search_files_query_params(
581605
return q
582606

583607

608+
@pytest.mark.parametrize(
609+
"location_id",
610+
[SimcoreS3DataManager.get_location_id()],
611+
ids=[SimcoreS3DataManager.get_location_name()],
612+
indirect=True,
613+
)
584614
@pytest.mark.parametrize("expected_number_of_user_files", [0, 1, 3])
585615
@pytest.mark.parametrize("query_params_choice", ["default", "limited", "with_offset"])
586616
async def test_search_files_request(
@@ -612,6 +642,12 @@ async def test_search_files_request(
612642
assert [_.file_uuid for _ in found] == expected
613643

614644

645+
@pytest.mark.parametrize(
646+
"location_id",
647+
[SimcoreS3DataManager.get_location_id()],
648+
ids=[SimcoreS3DataManager.get_location_name()],
649+
indirect=True,
650+
)
615651
@pytest.mark.parametrize("search_startswith", [True, False])
616652
@pytest.mark.parametrize("search_sha256_checksum", [True, False])
617653
@pytest.mark.parametrize("kind", ["owned", "read", None])

0 commit comments

Comments
 (0)