Test that nested dictionaries are merged recursively.
()
| 17 | |
| 18 | |
| 19 | def test_nested_dict_merge(): |
| 20 | """Test that nested dictionaries are merged recursively.""" |
| 21 | dict1 = {"a": {"x": 1, "y": 2}, "b": 3} |
| 22 | dict2 = {"a": {"y": 3, "z": 4}, "c": 5} |
| 23 | assert recursive_merge(dict1, dict2) == {"a": {"x": 1, "y": 3, "z": 4}, "b": 3, "c": 5} |
| 24 | |
| 25 | |
| 26 | def test_deeply_nested_merge(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…