Fixed #33348 -- Changed SimpleTestCase.assertFormError()/assertFormsetErrors() to take form/formset.

Instead of taking a response object and a context name for
the form/formset, the two methods now take the object directly.
This commit is contained in:
Baptiste Mispelon 2021-12-10 12:22:23 +01:00 committed by Mariusz Felisiak
parent 1a7d75cf77
commit 50e1e7ef8e
8 changed files with 563 additions and 290 deletions

View file

@ -441,9 +441,8 @@ class InlineAdminFormSet:
def forms(self):
return self.formset.forms
@property
def non_form_errors(self):
return self.formset.non_form_errors
return self.formset.non_form_errors()
@property
def is_bound(self):