#23543: Documentation how to test custom management command missing
--------------------------------------+--------------------
Reporter: wittwerch | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
The documentation about custom management command misses a few points how
to properly test them.
=> https://docs.djangoproject.com/en/1.7/howto/custom-management-commands/
For example the documentation states that you should use self.stdout: "By
using these proxies, it becomes much easier to test your custom command"
But how to actually test the output is missing. A complete example with
call_command would be great!
--
Ticket URL: <https://code.djangoproject.com/ticket/23543>
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/052.5be3d48c9e5a86eaeac2f1517de5ce9a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.