#17499: assertFieldOutput fails if field has customized required message
-----------------------------------+--------------------
Reporter: dpifke | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 1.3
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 1 | UI/UX: 0
-----------------------------------+--------------------
The string `u'This field is required.'` is hard-coded into the field
checks in `SimpleTestCase.assertFieldOutput()`. This causes tests using
this method to always fail for fields which have customized
`default_error_messages`.
Proposed fix would be to use the string from the field's `error_messages`
dictionary instead; one-line patch to do so forthcoming.
--
Ticket URL: <https://code.djangoproject.com/ticket/17499>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.