mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #33990 -- Renamed SimpleTestCase.assertFormsetError() to assertFormSetError().
Co-Authored-By: Michael Howitz <mh@gocept.com>
This commit is contained in:
committed by
Mariusz Felisiak
parent
fa9ac16c13
commit
564b317fb5
@@ -8110,7 +8110,7 @@ class AdminViewOnSiteTests(TestCase):
|
||||
Issue #20522
|
||||
Verifying that if the parent form fails validation, the inlines also
|
||||
run validation even if validation is contingent on parent form data.
|
||||
Also, assertFormError() and assertFormsetError() is usable for admin
|
||||
Also, assertFormError() and assertFormSetError() is usable for admin
|
||||
forms and formsets.
|
||||
"""
|
||||
# The form validation should fail because 'some_required_info' is
|
||||
@@ -8134,7 +8134,7 @@ class AdminViewOnSiteTests(TestCase):
|
||||
["This field is required."],
|
||||
)
|
||||
self.assertFormError(response.context["adminform"], None, [])
|
||||
self.assertFormsetError(
|
||||
self.assertFormSetError(
|
||||
response.context["inline_admin_formset"],
|
||||
0,
|
||||
None,
|
||||
@@ -8143,7 +8143,7 @@ class AdminViewOnSiteTests(TestCase):
|
||||
"contrived test case"
|
||||
],
|
||||
)
|
||||
self.assertFormsetError(
|
||||
self.assertFormSetError(
|
||||
response.context["inline_admin_formset"], None, None, []
|
||||
)
|
||||
|
||||
@@ -8179,7 +8179,7 @@ class AdminViewOnSiteTests(TestCase):
|
||||
"some_required_info",
|
||||
["This field is required."],
|
||||
)
|
||||
self.assertFormsetError(
|
||||
self.assertFormSetError(
|
||||
response.context["inline_admin_formset"],
|
||||
0,
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user