Skip to content

Commit

Permalink
Fix invalid input in test_calculate_diff_on_dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
cdot65 committed Feb 9, 2024
1 parent 3bf7d37 commit 8a96e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_snapshot_compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def test_calculate_diff_on_dicts_empty_dicts(self):
# NOTE: Non-dictionary input is not handled in the code and not tested
# if non supported input is passed it raises AttributeError since it doesnt have keys() method
def test_calculate_diff_on_dicts_invalid_input(self):
left_snapshot = {"key1": 123, "key2": "value2"}
left_snapshot = {"key1": 1.23, "key2": "value2"}
right_snapshot = {"key1": {"nested_key1": "value1"}, "key2": "value2"}

with pytest.raises(WrongDataTypeException) as exception_msg:
Expand Down

0 comments on commit 8a96e52

Please sign in to comment.