Skip to content

Commit

Permalink
assertEquals() is deprecated (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemessick authored Oct 29, 2024
1 parent 3cbccc5 commit 963d26e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def test_model_e_update(self):
self.test_model_c_create_new()
try:
update_response = api.model_update(model_directory)
self.assertEquals(len(update_response.error), 0)
self.assertEqual(len(update_response.error), 0)
self.assertIsNotNone(update_response.ref)
self.assertGreater(len(update_response.ref), 0)
except ApiException as e:
Expand Down Expand Up @@ -753,7 +753,7 @@ def test_model_instance_version_d_delete(self):
try:
version_delete_resp = api.model_instance_version_delete(
f'{self.model_instance}/1', True)
self.assertEquals(len(version_delete_resp.error), 0, msg=version_delete_resp.error)
self.assertEqual(len(version_delete_resp.error), 0, msg=version_delete_resp.error)
except ApiException as e:
self.fail(f"model_instance_version_delete failed: {e}")

Expand All @@ -763,7 +763,7 @@ def test_model_instance_x_delete(self):
try:
inst_update_resp = api.model_instance_delete(self.model_instance, True)
self.assertIsNotNone(inst_update_resp)
self.assertEquals(len(inst_update_resp.error), 0)
self.assertEqual(len(inst_update_resp.error), 0)
except ApiException as e:
self.fail(f"model_instance_delete failed: {e}")

Expand Down

0 comments on commit 963d26e

Please sign in to comment.