Skip to content

Commit

Permalink
add unit test to make sure merge_dict will not remove duplicate entries
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba-mazurkiewicz committed Dec 3, 2024
1 parent aee1227 commit 9f411b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/test_yaml.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ def test_merge_dict():
destination = {}
yaml.merge_dict(source, destination)
assert destination == source
# make sure that merge_dict will not remove duplicate entries
source = {"root": {"duplicates": [{"name": "abc"}, {"name": "abc"}]}}
destination = {}
yaml.merge_dict(source, destination)
assert destination == source


def test_merge_list_item():
Expand Down

0 comments on commit 9f411b9

Please sign in to comment.