Skip to content

Commit

Permalink
test python 3.12 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencpope authored Oct 8, 2024
1 parent 98fc65a commit f4a0ade
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions descarteslabs/core/compute/tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f4a0ade

Please sign in to comment.