From 0437d1c88d126ce732585f99af41dcb96ba45c01 Mon Sep 17 00:00:00 2001 From: nadijagraca Date: Thu, 4 Jan 2024 11:59:14 +0100 Subject: [PATCH] addressing pr comments part 2 --- vizro-core/tests/unit/vizro/actions/test_actions_utils.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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