Skip to content

Commit 2700ee6

Browse files
fix: minor
1 parent b58f26f commit 2700ee6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

services/storage/tests/unit/test_handlers_paths.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async def test_list_paths_pagination(
182182

183183
# ls in the workspace (S3-based)
184184
# ls in the workspace
185-
selected_node_id = random.choice(list(nodes.keys())) # noqa: S311
185+
selected_node_id = random.choice(list(nodes)) # noqa: S311
186186
selected_node_s3_keys = [
187187
Path(s3_object_id) for s3_object_id in list_of_files[selected_node_id]
188188
]
@@ -246,7 +246,7 @@ async def test_list_paths_pagination_large_page(
246246
],
247247
):
248248
project, nodes, list_of_files = with_random_project_with_files
249-
selected_node_id = random.choice(list(nodes.keys())) # noqa: S311
249+
selected_node_id = random.choice(list(nodes)) # noqa: S311
250250
selected_node_s3_keys = [
251251
Path(s3_object_id) for s3_object_id in list_of_files[selected_node_id]
252252
]
@@ -669,7 +669,7 @@ async def test_path_compute_size(
669669
)
670670

671671
# get size of one of the nodes
672-
selected_node_id = random.choice(list(nodes.keys())) # noqa: S311
672+
selected_node_id = random.choice(list(nodes)) # noqa: S311
673673
path = Path(project["uuid"]) / f"{selected_node_id}"
674674
selected_node_s3_keys = [
675675
Path(s3_object_id) for s3_object_id in list_of_files[selected_node_id]

0 commit comments

Comments
 (0)