Skip to content

Commit

Permalink
addressing pr comments part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nadijagraca committed Jan 4, 2024
1 parent 5ccb023 commit 0437d1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vizro-core/tests/unit/vizro/actions/test_actions_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0437d1c

Please sign in to comment.