#23663: Commands classes are not properly testable due to their initialization
in
execute() method!
-------------------------------------+-------------------------------------
Reporter: daveoncode | Owner: nobody
Type: | Status: new
Cleanup/optimization | Version: 1.7
Component: Core (Management | Resolution:
commands) | Triage Stage: Ready for
Severity: Normal | checkin
Keywords: test, tdd, | Needs documentation: 0
management, commands | Patch needs improvement: 0
Has patch: 1 | UI/UX: 0
Needs tests: 0 |
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Comment (by loic):
@berkerpeksag patching `stderr/stdout` as suggested doesn't allow setting
`no_color` which is very useful in tests.
@claudep sorry I didn't notice your comment earlier. Yes the stylistic
changes belonged to another commit, it's now done. I was mostly using the
PR for CI which gave me a really bad time (turns out Jenkin's doesn't run
in a TTY). I can still make a PR just for this fix if you want.
--
Ticket URL: <https://code.djangoproject.com/ticket/23663#comment:6>
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/068.8114e9db399db4f6b15bc3bd83fab42e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.