#33301: Documentation for assertFormError and assertFormsetError doesn't explain
all arguments
------------------------------------------------+------------------------
Reporter: Baptiste Mispelon | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 1
UI/UX: 0 |
------------------------------------------------+------------------------
The reference documentation for `assertFormError` [1] and
`assertFormsetError` [2] lists `response` as a required first argument but
doesn't explain what it is.
In contrast, `assertContains` (the next method on the page) is more
explicit:
> Asserts that a Response instance produced the given status_code [...]
(though it would have been nice if `Response` was a link to the relevant
doc)
[1]
https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.SimpleTestCase.assertFormError
[2]
https://docs.djangoproject.com/en/dev/topics/testing/tools/#django.test.SimpleTestCase.assertFormsetError
--
Ticket URL: <https://code.djangoproject.com/ticket/33301>
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.0313dd275d55cb6b0bd82071d7d176f4%40djangoproject.com.