Skip to content

Commit

Permalink
Ponts review addressed
Browse files Browse the repository at this point in the history
  • Loading branch information
konstntokas committed Oct 8, 2024
1 parent 3d25072 commit e4ba6c1
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion test/webapi/ows/stac/test_controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,19 @@
}


def assert_equal_deep_dict(self, dict1, dict2, msg=None):
def assert_equal_deep_dict(
self: unittest.TestCase, dict1: dict, dict2: dict, msg: str = None
):
"""This function asserts whether two dictionaries are equal while being
insensitive to the order of iterables within the dictionaries.
Args:
self: unittest class
dict1: dictionary 1 to be tested
dict2: dictionary 2 to be tested
msg: additional message to be printed if assertion fails; needed to keep
track of the key where equality assertion fails.
"""
if msg is None:
msg = "Error occurred in key:"
for key in dict1:
Expand Down

0 comments on commit e4ba6c1

Please sign in to comment.