#17312: Testing examples should use django.utils.TestCase
--------------------------------------+--------------------
Reporter: jcspray@… | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Documentation | Version: SVN
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+--------------------
The 'Testing Django applications page'
(https://docs.djangoproject.com/en/dev/topics/testing/) gives many
examples of tests using unittest2.TestCase directly rather than
django.test.TestCase.
For the DB to be reset between tests it is essential to use
django.test.TestCase, and that is not made at all obvious in this
documentation.
* At least: a prominent warning should be present about the fact that DB
side effects are possible when using unittest2.TestCase
* Preferably: the examples should use django.utils.TestCase since it is a
safer default.
--
Ticket URL: <https://code.djangoproject.com/ticket/17312>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.