Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dmichaels-harvard committed Nov 27, 2023
1 parent 59673ca commit b27428f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/test_misc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3650,6 +3650,7 @@ def test_merge_objects_5():
merge_objects(target, source, False)
assert target == expected


def test_merge_objects_6():
target = {"abc": {"def": {"ghi": None}}, "xyzzy": ["mno"]}
source = {"xyzzy": [{"foo": None}, {"goo": None}]}
Expand All @@ -3669,6 +3670,7 @@ def test_merge_objects_7():
def test_merge_objects_8():
target = {"abc": {"def": {"ghi": None}}, "xyzzy": [None, None, "abc", "def", 123]}
source = {"xyzzy": [{"foo": None}, {"goo": None}, {"hoo": None}]}
expected = {"abc": {"def": {"ghi": None}}, "xyzzy": [{"foo": None}, {"goo": None}, {"hoo": None}, {"hoo": None}, {"hoo": None}]}
expected = {"abc": {"def": {"ghi": None}},
"xyzzy": [{"foo": None}, {"goo": None}, {"hoo": None}, {"hoo": None}, {"hoo": None}]}
merge_objects(target, source, True)
assert target == expected

0 comments on commit b27428f

Please sign in to comment.