Skip to content

Commit

Permalink
PYTHON-1384 Remove usages of unittest.assertDictContainsSubset (datas…
Browse files Browse the repository at this point in the history
  • Loading branch information
absurdfarce authored May 3, 2024
1 parent 7780e90 commit 1efde76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/integration/cqlengine/management/test_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def test_table_property_update(self):

table_options = management._get_table_metadata(ModelWithTableProperties).options

self.assertDictContainsSubset(ModelWithTableProperties.__options__, table_options)
self.assertLessEqual(ModelWithTableProperties.__options__.items(), table_options.items())

def test_bogus_option_update(self):
sync_table(ModelWithTableProperties)
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/standard/test_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -1751,9 +1751,9 @@ def test_init_cond(self):
cql_init = encoder.cql_encode_all_types(init_cond)
with self.VerifiedAggregate(self, **self.make_aggregate_kwargs('update_map', 'map<int, int>', init_cond=cql_init)) as va:
map_res = s.execute("SELECT %s(v) AS map_res FROM t" % va.function_kwargs['name'])[0].map_res
self.assertDictContainsSubset(expected_map_values, map_res)
self.assertLessEqual(expected_map_values.items(), map_res.items())
init_not_updated = dict((k, init_cond[k]) for k in set(init_cond) - expected_key_set)
self.assertDictContainsSubset(init_not_updated, map_res)
self.assertLessEqual(init_not_updated.items(), map_res.items())
c.shutdown()

def test_aggregates_after_functions(self):
Expand Down

0 comments on commit 1efde76

Please sign in to comment.