django1/django
Ramiro Morales f758bdab5e Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables.
Previously, the flush was done before the test case execution and now
it is performed after it.

Other changes to the testing infrastructure include:

* TransactionTestCase now doesn't reset autoincrement sequences either
  (previous behavior can achieved by using `reset_sequences`.)
  With this, no implicit such reset is performed by any of the provided
  TestCase classes.

* New ordering of test cases: All unittest tes cases are run first and
  doctests are run at the end.

THse changes could be backward-incompatible with test cases that relied
on some kind of state being preserved between tests. Please read the
relevant sections of the release notes and testing documentation for
further details.

Thanks Andreas Pelme for the initial patch. Karen Tracey and Anssi
Kääriäinen for the feedback and Anssi for reviewing.

This also fixes #12408.
2012-07-24 17:24:16 -03:00
..
bin Made more extensive usage of context managers with open. 2012-05-05 14:06:36 +02:00
conf [py3] Replaced basestring by six.string_types. 2012-07-22 09:29:54 +02:00
contrib [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
core Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
db Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
dispatch [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
forms [py3] Added Python 3 compatibility for xrange. 2012-07-22 09:29:56 +02:00
http [py3] Switched to Python 3-compatible imports. 2012-07-22 09:29:56 +02:00
middleware Fixed #18042 -- Advanced deprecation warnings. 2012-05-03 15:27:01 +02:00
shortcuts Removed usage of mimetype kwarg of HttpResponse 2012-06-30 21:19:07 +02:00
template [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
templatetags [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
test Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
utils Added tests for deprecation warnings and fixed the argument order for the warnings. 2012-07-24 07:01:57 -07:00
views [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
__init__.py Moved version code out of __init__.py. 2012-04-29 13:44:32 -05:00