Fixed the failing linting checks

This commit is contained in:
Pk Patel 2025-09-23 21:35:53 -04:00 committed by GitHub
parent 8b2cd9183d
commit f73b3fbb0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1714,10 +1714,10 @@ aria-describedby="id_birthday_error">
class FooForm(Form): class FooForm(Form):
the_field = CharField(max_length=100) the_field = CharField(max_length=100)
exc = ValidationError({"the_field": "Something is wrong with the field."}) exc = ValidationError({"the_field": "This field has an error."})
form = FooForm() form = FooForm()
form.add_error("the_field", exc) form.add_error("the_field", exc)
self.assertEqual(form.errors, {"the_field": ["Something is wrong with the field."]}) self.assertEqual(form.errors, {"the_field": ["This field has an error."]})
def test_add_error_validation_error_dict_multiple_fields(self): def test_add_error_validation_error_dict_multiple_fields(self):
class FooForm(Form): class FooForm(Form):