1
0
mirror of https://github.com/django/django.git synced 2024-12-26 02:56:25 +00:00
django/django/test
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
..
__init__.py Fixed #2879 -- Added support for the integration with Selenium and other in-browser testing frameworks. Also added the first Selenium tests for contrib.admin. Many thanks to everyone for their contributions and feedback: Mikeal Rogers, Dirk Datzert, mir, Simon G., Almad, Russell Keith-Magee, Denis Golomazov, devin, robertrv, andrewbadr, Idan Gazit, voidspace, Tom Christie, hjwp2, Adam Nelson, Jannis Leidel, Anssi Kääriäinen, Preston Holmes, Bruno Renié and Jacob Kaplan-Moss. 2011-12-22 08:33:58 +00:00
_doctest.py [py3] Switched to Python 3-compatible imports. 2012-07-22 09:29:56 +02:00
client.py [py3] Updated urllib/urllib2/urlparse imports. 2012-07-22 09:29:55 +02:00
html.py [py3] Switched to Python 3-compatible imports. 2012-07-22 09:29:56 +02:00
signals.py Fixed #18395 -- Reset language-related global variables with setting_changed 2012-07-21 13:49:07 +02:00
simple.py Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
testcases.py Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
utils.py [py3] Replaced basestring by six.string_types. 2012-07-22 09:29:54 +02:00