File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -636,13 +636,13 @@ class ChildFinder(object):
636636 """
637637 Recursively looks for a child based on a path
638638 """
639- def __init__ (self , remote_path , node ):
639+ def __init__ (self , node , remote_path ):
640640 """
641- :param remote_path: path under a project in DDSConnection
642641 :param node: Project|Folder to find children under
642+ :param remote_path: path under a project in DDSConnection
643643 """
644- self .remote_path = remote_path
645644 self .node = node
645+ self .remote_path = remote_path
646646
647647 def get_child (self ):
648648 """
Original file line number Diff line number Diff line change @@ -738,7 +738,7 @@ def test_direct_children(self):
738738 mock_folder ,
739739 mock_file
740740 ]
741- child_finder = ChildFinder ('data.txt' , mock_project )
741+ child_finder = ChildFinder (mock_project , 'data.txt' )
742742 found_child = child_finder .get_child ()
743743 self .assertEqual (found_child , mock_file )
744744
@@ -754,7 +754,7 @@ def test_grand_children(self):
754754 mock_project .get_children .return_value = [
755755 mock_folder ,
756756 ]
757- child_finder = ChildFinder ('results/data.txt' , mock_project )
757+ child_finder = ChildFinder (mock_project , 'results/data.txt' )
758758 found_child = child_finder .get_child ()
759759 self .assertEqual (found_child , mock_file )
760760
@@ -764,7 +764,7 @@ def test_child_not_found(self):
764764 mock_project .get_children .return_value = [
765765 mock_folder ,
766766 ]
767- child_finder = ChildFinder ('data.txt' , mock_project )
767+ child_finder = ChildFinder (mock_project , 'data.txt' )
768768 with self .assertRaises (ItemNotFound ):
769769 child_finder .get_child ()
770770
You can’t perform that action at this time.
0 commit comments