Skip to content

Commit c03f535

Browse files
committed
add test cases
1 parent 0963daf commit c03f535

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/tree/test_modify.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -402,18 +402,18 @@ def test_copy_nodes_from_tree_to_tree_merge_children_non_overriding_error(self):
402402

403403
def test_copy_nodes_from_tree_to_tree_merge_children_overriding(self):
404404
from_paths = ["d", "e", "g", "h", "f"]
405-
to_paths = ["a/b/d", "a/b/e", "a/b/e/g", "a/b/e/h", "a/c/f"]
405+
to_paths = ["a/bb/d", "a/bb/e", "a/bb/e/g", "a/bb/e/h", "a/c/f"]
406406
shift_nodes(self.root, from_paths, to_paths)
407407

408408
root_other = Node("a", age=90)
409-
b = Node("b", age=1)
409+
b = Node("b", age=65)
410410
c = Node("c", age=1, parent=root_other)
411411
b.parent = root_other
412412
f = Node("f")
413413
f.parent = c
414-
from_paths = ["a/b", "a/c"]
415-
to_paths = ["a/b", "a/c"]
416-
assert find_path(root_other, "a/b").get_attr("age") == 1
414+
from_paths = ["a/bb", "a/c"]
415+
to_paths = ["a/b/bb", "a/c"]
416+
assert find_path(root_other, "a/b").get_attr("age") == 65
417417
assert find_path(root_other, "a/c").get_attr("age") == 1
418418

419419
copy_nodes_from_tree_to_tree(

0 commit comments

Comments
 (0)