diff --git a/vizro-core/tests/unit/vizro/actions/test_actions_utils.py b/vizro-core/tests/unit/vizro/actions/test_actions_utils.py index c913641e3..542a8b8e4 100644 --- a/vizro-core/tests/unit/vizro/actions/test_actions_utils.py +++ b/vizro-core/tests/unit/vizro/actions/test_actions_utils.py @@ -47,9 +47,15 @@ def test_update_nested_graph_properties_multiple_levels(self, graph, dot_separat "red", {"nodes": {"A": {"color": "blue"}, "B": "red"}}, ), + ( + {}, + "color", + "red", + {"color": "red"} + ) ], ) - def test_update_nested_graph_properties_add_keys(self, graph, dot_separated_strings, value, expected): + def test_update_nested_graph_properties_add_or_overwrite_keys(self, graph, dot_separated_strings, value, expected): result = _update_nested_graph_properties(graph, dot_separated_strings, value) assert result == expected