From f4a0ade2fddef964a4ad838aeef272c656fe9450 Mon Sep 17 00:00:00 2001 From: "Stephen C. Pope" Date: Tue, 8 Oct 2024 09:03:46 -0600 Subject: [PATCH] test python 3.12 fix --- descarteslabs/core/compute/tests/base.py | 5 +++++ 1 file changed, 5 insertions(+) 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