Modified wrong expected model formset output in a couple of additional tests after fix introduced in [15424]. Refs #15167.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15430 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
f2b0f8ea0f
commit
0b8b60caca
|
@ -1096,7 +1096,7 @@ class ModelFormsetTest(TestCase):
|
||||||
self.assertEqual(formset._non_form_errors,
|
self.assertEqual(formset._non_form_errors,
|
||||||
[u'Please correct the duplicate data for title.'])
|
[u'Please correct the duplicate data for title.'])
|
||||||
self.assertEqual(formset.errors,
|
self.assertEqual(formset.errors,
|
||||||
[{}, {'__all__': u'Please correct the duplicate values below.'}])
|
[{}, {'__all__': [u'Please correct the duplicate values below.']}])
|
||||||
|
|
||||||
FormSet = modelformset_factory(Post, extra=2)
|
FormSet = modelformset_factory(Post, extra=2)
|
||||||
data = {
|
data = {
|
||||||
|
@ -1118,7 +1118,7 @@ class ModelFormsetTest(TestCase):
|
||||||
self.assertEqual(formset._non_form_errors,
|
self.assertEqual(formset._non_form_errors,
|
||||||
[u'Please correct the duplicate data for title which must be unique for the date in posted.'])
|
[u'Please correct the duplicate data for title which must be unique for the date in posted.'])
|
||||||
self.assertEqual(formset.errors,
|
self.assertEqual(formset.errors,
|
||||||
[{}, {'__all__': u'Please correct the duplicate values below.'}])
|
[{}, {'__all__': [u'Please correct the duplicate values below.']}])
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'form-TOTAL_FORMS': '2',
|
'form-TOTAL_FORMS': '2',
|
||||||
|
|
Loading…
Reference in New Issue