django1/django/db/backends/postgresql_psycopg2
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 Added postgresql_psycopg2 backend, which is untested, just for a starting point 2006-05-16 23:27:07 +00:00
base.py [py3] Exception aren't iterable in Python 3. 2012-07-22 09:29:52 +02:00
client.py Deprecated the psycopg-based postgresql database backend. 2011-04-02 08:39:08 +00:00
creation.py Used symbolic constants for psycopg2 isolation levels. 2011-11-19 14:18:44 +00:00
introspection.py Fixed #18269 -- Applied unicode_literals for Python 3 compatibility. 2012-06-07 18:08:47 +02:00
operations.py Fixed #18271 -- Changed stage at which TransactionTestCase flushes DB tables. 2012-07-24 17:24:16 -03:00
version.py Fixed #11065, #11285 -- Streamlined PostgreSQL version detection, fixing incompatibility with multi-db. Thanks findepi for the report. 2011-06-19 18:00:09 +00:00