Opened 7 years ago
Last modified 7 years ago
#29275 closed Cleanup/optimization
Emit "(actual errors: none)" instead of "(actual errors: )" in assertFormError — at Version 1
Reported by: | Chris Lamb | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
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.
Change History (1)
comment:1 by , 7 years ago
Description: | modified (diff) |
---|---|
Has patch: | set |
Summary: | Emit "(actual errors: none)" instead of "(actual errors: )" → Emit "(actual errors: none)" instead of "(actual errors: )" in assertFormError |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/9837