Fix call to TestCase.assertEqual() (#19091)

`TestCase.assertEquals()` does not exist.
This commit is contained in:
Jeremy Audet 2024-07-08 14:06:22 -04:00 committed by GitHub
parent 8ab3bb491b
commit 5da4f50dac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -408,7 +408,7 @@ class ModelTests(unittest.TestCase):
self.assertEqual(a.pattern_with_digits_and_delimiter, "image_123")
# test sanitize for serialization with different data types
self.assertEquals(petstore_api.ApiClient().sanitize_for_serialization(a), {'byte': b'string', 'date': '2013-09-17', 'number': 123.45, 'password': 'testing09876', 'pattern_with_digits_and_delimiter': 'image_123'})
self.assertEqual(petstore_api.ApiClient().sanitize_for_serialization(a), {'byte': b'string', 'date': '2013-09-17', 'number': 123.45, 'password': 'testing09876', 'pattern_with_digits_and_delimiter': 'image_123'})
# test sanitize for serialization with SecretStr (format: password)
class LoginTest(BaseModel):