@@ -519,9 +519,9 @@ async def test_list_paths_with_display_name_containing_slashes(
519519 )
520520 assert page_of_paths .items [0 ].display_path == Path (
521521 quote (project_name_with_slashes , safe = "" )
522- ) / quote (node_name_with_non_ascii , safe = "" ), (
523- "display path parts should be url encoded "
524- )
522+ ) / quote (
523+ node_name_with_non_ascii , safe = " "
524+ ), "display path parts should be url encoded"
525525
526526 # ls in the node workspace
527527 selected_node_id = NodeID (random .choice (list (project ["workbench" ]))) # noqa: S311
@@ -565,12 +565,12 @@ async def test_list_paths_with_display_name_containing_slashes(
565565 * (expected_paths [0 ][0 ].parts [2 :]),
566566 ],
567567 )
568- assert page_of_paths .items [0 ].display_path == Path (expected_display_path ), (
569- "display path parts should be url encoded"
570- )
568+ assert page_of_paths .items [0 ].display_path == Path (
569+ expected_display_path
570+ ), "display path parts should be url encoded"
571571
572572
573- async def _assert_compute_path_total_size (
573+ async def _assert_compute_path_size (
574574 initialized_app : FastAPI ,
575575 client : httpx .AsyncClient ,
576576 location_id : LocationID ,
@@ -582,7 +582,7 @@ async def _assert_compute_path_total_size(
582582 url = url_from_operation_id (
583583 client ,
584584 initialized_app ,
585- "compute_path_total_size " ,
585+ "compute_path_size " ,
586586 location_id = f"{ location_id } " ,
587587 path = f"{ path } " ,
588588 ).with_query (user_id = user_id )
@@ -627,9 +627,9 @@ async def test_path_compute_size(
627627 ],
628628 project_params : ProjectWithFilesParams ,
629629):
630- assert len ( project_params . allowed_file_sizes ) == 1 , (
631- "test preconditions are not filled! allowed file sizes should have only 1 option for this test"
632- )
630+ assert (
631+ len ( project_params . allowed_file_sizes ) == 1
632+ ), "test preconditions are not filled! allowed file sizes should have only 1 option for this test"
633633 project , list_of_files = with_random_project_with_files
634634
635635 total_num_files = sum (
@@ -639,7 +639,7 @@ async def test_path_compute_size(
639639 # get size of a full project
640640 expected_total_size = project_params .allowed_file_sizes [0 ] * total_num_files
641641 path = Path (project ["uuid" ])
642- await _assert_compute_path_total_size (
642+ await _assert_compute_path_size (
643643 initialized_app ,
644644 client ,
645645 location_id ,
@@ -657,7 +657,7 @@ async def test_path_compute_size(
657657 expected_total_size = project_params .allowed_file_sizes [0 ] * len (
658658 selected_node_s3_keys
659659 )
660- await _assert_compute_path_total_size (
660+ await _assert_compute_path_size (
661661 initialized_app ,
662662 client ,
663663 location_id ,
@@ -676,7 +676,7 @@ async def test_path_compute_size(
676676 expected_total_size = project_params .allowed_file_sizes [0 ] * len (
677677 selected_node_s3_keys
678678 )
679- await _assert_compute_path_total_size (
679+ await _assert_compute_path_size (
680680 initialized_app ,
681681 client ,
682682 location_id ,
@@ -695,7 +695,7 @@ async def test_path_compute_size(
695695 expected_total_size = project_params .allowed_file_sizes [0 ] * len (
696696 selected_node_s3_keys
697697 )
698- workspace_total_size = await _assert_compute_path_total_size (
698+ workspace_total_size = await _assert_compute_path_size (
699699 initialized_app ,
700700 client ,
701701 location_id ,
@@ -720,7 +720,7 @@ async def test_path_compute_size(
720720 expected_total_size = project_params .allowed_file_sizes [0 ] * len (
721721 selected_node_s3_keys
722722 )
723- accumulated_subfolder_size += await _assert_compute_path_total_size (
723+ accumulated_subfolder_size += await _assert_compute_path_size (
724724 initialized_app ,
725725 client ,
726726 location_id ,
@@ -740,7 +740,7 @@ async def test_path_compute_size_inexistent_path(
740740 faker : Faker ,
741741 fake_datcore_tokens : tuple [str , str ],
742742):
743- await _assert_compute_path_total_size (
743+ await _assert_compute_path_size (
744744 initialized_app ,
745745 client ,
746746 location_id ,
0 commit comments