Skip to content

Commit 2efadc0

Browse files
author
Andrei Neagu
committed
fixed test
1 parent 08bc95a commit 2efadc0

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

services/storage/tests/unit/test_rpc_handlers_simcore_s3.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,17 +592,20 @@ async def test_start_export_data(
592592
):
593593
_, src_projects_list = await random_project_with_files(project_params)
594594

595-
paths_to_export: set[SimcoreS3FileID] = set()
595+
all_available_files: set[SimcoreS3FileID] = set()
596596
for x in src_projects_list.values():
597-
paths_to_export |= x.keys()
597+
all_available_files |= x.keys()
598+
599+
nodes_in_project_to_export = {
600+
TypeAdapter(PathToExport).validate_python("/".join(Path(x).parts[0:2]))
601+
for x in all_available_files
602+
}
598603

599604
result = await _request_start_export_data(
600605
storage_rabbitmq_rpc_client,
601606
user_id,
602607
product_name,
603-
paths_to_export=[
604-
TypeAdapter(PathToExport).validate_python(x) for x in paths_to_export
605-
],
608+
paths_to_export=list(nodes_in_project_to_export),
606609
)
607610

608611
assert re.fullmatch(

0 commit comments

Comments
 (0)