main.tests.tests.TimeSlotTestCase.test_creation ... ERROR
instead of
test_creation (main.tests.tests.TimeSlotTestCase) ... ERROR
so that I can easily just copy&paste that line and run the test again
without having to remove the brackets () and having to copy the name of
the test behind the class and add a .?
--
Ticket URL: <https://code.djangoproject.com/ticket/23332>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_docs: => 0
* resolution: => wontfix
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
Django uses the built-in `unittest` library of Python, and the test output
is entirely handled by `unittest`. So there is nothing in Django which
could be changed to modify this output. The feature request seems
reasonable to me, but it would need to be pursued as a change in the
Python standard library.
--
Ticket URL: <https://code.djangoproject.com/ticket/23332#comment:1>
Comment (by areski):
I think you could achieve this by hacking the
https://docs.python.org/2/library/unittest.html#unittest.TestResult
Here an example of testrunner adding color:
https://github.com/stevematney/redgreenunittests
My guess would be to use the same hack around TestResult to change the
output format.
--
Ticket URL: <https://code.djangoproject.com/ticket/23332#comment:2>
Comment (by googol7):
created an issue here: http://bugs.python.org/issue22431
--
Ticket URL: <https://code.djangoproject.com/ticket/23332#comment:3>
Comment (by Tim Graham):
Following duplicate ticket #27255, a [https://groups.google.com/d/topic
/django-developers/6nyN2PkpZik/discussion django-developers thread]
proposes to reopen this issue.
--
Ticket URL: <https://code.djangoproject.com/ticket/23332#comment:4>
* cc: chris.jerdonek@… (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/23332#comment:5>