mirror of
https://github.com/django/django.git
synced 2025-11-18 11:00:24 +00:00
Refs #33348 -- Improved messages raised by SimpleTestCase.assertFormError()/assertFormsetErrors().
This makes messages use BaseFormSet/BaseForm.__repr__() instead of context, and adds the _assert_form_error() helper.
This commit is contained in:
parent
9bb13def5d
commit
d84cd91e90
4 changed files with 130 additions and 212 deletions
|
|
@ -83,6 +83,10 @@ class AdminForm:
|
|||
def non_field_errors(self):
|
||||
return self.form.non_field_errors
|
||||
|
||||
@property
|
||||
def fields(self):
|
||||
return self.form.fields
|
||||
|
||||
@property
|
||||
def is_bound(self):
|
||||
return self.form.is_bound
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue