Skip to content

Commit c81ffad

Browse files
committed
improve test
1 parent 3889204 commit c81ffad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

services/storage/tests/unit/test_handlers_paths.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ async def test_list_paths_with_display_name_containing_slashes(
475475
expected_paths = _filter_and_group_paths_one_level_deeper(
476476
selected_node_s3_keys, selected_path_filter[0]
477477
)
478-
await _assert_list_paths(
478+
page_of_paths = await _assert_list_paths(
479479
initialized_app,
480480
client,
481481
location_id,
@@ -484,3 +484,8 @@ async def test_list_paths_with_display_name_containing_slashes(
484484
expected_paths=expected_paths,
485485
check_total=False,
486486
)
487+
assert page_of_paths.items[0].display_path == Path(
488+
quote(project_name_with_slashes, safe="")
489+
) / quote(
490+
node_name_with_non_ascii, safe=""
491+
), "display path parts should be url encoded"

0 commit comments

Comments
 (0)