#33301: Documentation for assertFormError and assertFormsetError doesn't explain
all arguments
-------------------------------------+-------------------------------------
Reporter: Baptiste Mispelon | Owner: Baptiste
Type: | Mispelon
Cleanup/optimization | Status: assigned
Component: Documentation | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Baptiste Mispelon):
* has_patch: 0 => 1
Comment:
Here's the PR, split into 3 commits:
1) The documentation changes described in the original ticket
2) Missing tests for `assertFormError` and `assertFormsetError` (the
failure cases were not tested at all)
3) A small API change to make `assertFormError` and `assertFormsetError`
raise a `ValueError` with a helpful message (instead of an
`AttributeError`) when used with a non test-client response (same behavior
as `assertTemplateUsed`).
https://github.com/django/django/pull/15106
--
Ticket URL: <https://code.djangoproject.com/ticket/33301#comment:3>
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/067.ea9c9d773402b09c7a771b1e619cb3cc%40djangoproject.com.