Skip to content

Commit a528fd2

Browse files
committed
fix parameter order
1 parent 2083d6f commit a528fd2

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

ddsc/sdk/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
"""

ddsc/sdk/tests/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)