django1/django/core
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
..
cache [py3] Switched to Python 3-compatible imports. 2012-07-22 09:29:56 +02:00
files [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
handlers [py3] Used six.reraise wherever necessary. 2012-07-22 09:29:52 +02:00
mail [py3] Replaced basestring by six.string_types. 2012-07-22 09:29:54 +02:00
management Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
serializers [py3] Replaced basestring by six.string_types. 2012-07-22 09:29:54 +02:00
servers [py3] Switched to Python 3-compatible imports. 2012-07-22 09:29:56 +02:00
__init__.py Imported Django from private SVN repository (created from r. 8825) 2005-07-13 01:25:57 +00:00
context_processors.py Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
exceptions.py Imported reduce from functools for forward compatibility. 2012-05-20 00:25:46 +02:00
paginator.py Fixed #17159 -- Validated returned number of next|previous_page_number 2012-06-09 17:55:24 +02:00
signals.py Major refactoring of django.dispatch with an eye towards speed. The net result is that signals are up to 90% faster. 2008-08-06 15:32:46 +00:00
signing.py Fixed #18013 -- Use the new 'as' syntax for exceptions. 2012-04-29 20:57:15 +02:00
urlresolvers.py [py3] Replaced unicode/str by six.text_type/bytes. 2012-07-22 09:29:54 +02:00
validators.py [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
wsgi.py Fixed #16360 -- Added WSGI entrypoint to startproject layout, and enabled internal servers (runserver and runfcgi) to use an externally-defined WSGI application. Thanks to Armin Ronacher, Jannis Leidel, Alex Gaynor, ptone, and Jacob Kaplan-Moss. 2011-10-22 04:30:10 +00:00
xheaders.py Fixed #8049 -- Fixed inconsistency in admin site is_active checks. Thanks for patch and tests, isagalaev 2010-01-10 16:51:13 +00:00