@@ -1577,27 +1577,26 @@ def test_project_codebase_resources_export_json(self):
15771577 for field in expected_fields :
15781578 self .assertIn (field , json_data [0 ])
15791579
1580- def test_file_tree_base_url_lists_top_level_nodes (self ):
1580+ def test_scanpipe_views_resource_tree_root_path (self ):
15811581 make_resource_file (self .project1 , path = "child1.txt" )
15821582 make_resource_file (self .project1 , path = "dir1" )
15831583
15841584 url = reverse ("codebase_resource_tree" , kwargs = {"slug" : self .project1 .slug })
15851585 response = self .client .get (url )
15861586 children = response .context ["children" ]
1587- print (response .context )
15881587 child1 = children [0 ]
15891588 dir1 = children [1 ]
15901589
15911590 self .assertEqual (child1 .path , "child1.txt" )
15921591 self .assertEqual (dir1 .path , "dir1" )
15931592
1594- def test_file_tree_nested_url_lists_only_children_of_given_path (self ):
1593+ def test_scanpipe_views_resource_tree_children_path (self ):
15951594 make_resource_file (self .project1 , path = "parent/child1.txt" )
15961595 make_resource_file (self .project1 , path = "parent/dir1" )
15971596 make_resource_file (self .project1 , path = "parent/dir1/child2.txt" )
15981597
15991598 url = reverse ("codebase_resource_tree" , kwargs = {"slug" : self .project1 .slug })
1600- response = self .client .get (url + "?path=parent&tree =true" )
1599+ response = self .client .get (url + "?path=parent&tree_panel =true" )
16011600 children = response .context ["children" ]
16021601
16031602 child1 = children [0 ]
0 commit comments