diff --git a/descarteslabs/core/compute/tests/base.py b/descarteslabs/core/compute/tests/base.py index 373298e3..267f2538 100644 --- a/descarteslabs/core/compute/tests/base.py +++ b/descarteslabs/core/compute/tests/base.py @@ -200,3 +200,8 @@ def assert_url_called(self, uri, times=1, json=None, body=None, params=None): msg += "\n\nParams:\n" + "\n".join(calls_with_params) assert count == times, msg + + # this was removed from python 3.12 unittest.TestCase + def assertDictContainsSubset(self, subset, dictionary): + for key, value in subset.items(): + assert key in dictionary and dictionary[key] == value