#29275: Emit "(actual errors: none)" instead of "(actual errors: )" in
assertFormError
-------------------------------------+-------------------------------------
     Reporter:  Chris Lamb           |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |
    Component:  Testing framework    |                  Version:  2.0
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:
                                     |  Unreviewed
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Chris Lamb):

 * has_patch:  0 => 1


Old description:

> The suffix in, for
>
> {{{
> AssertionError: False is not true : The form 'form' in context 0 does not
> contain the non-field error 'Please enter a correct email and password.
> Note that both fields may be case-sensitive.' (actual errors: )
> }}}
>
> is kinda weird. We should print "none" instead, otherwise it looks like
> there is an error in the error.

New description:

 The suffix in the error output of assertFormError (eg.)

 {{{
 AssertionError: False is not true : The form 'form' in context 0 does not
 contain the non-field error 'Please enter a correct email and password.
 Note that both fields may be case-sensitive.' (actual errors: )
 }}}

 is kinda weird. We should print "none" instead, otherwise it looks like
 there is an error in the error.

--

Comment:

 https://github.com/django/django/pull/9837

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29275#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/063.a72921d1a3f5df14f41a39eeb8af01b3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to