django1/django/test
Tommy Beadle d3fdaf907d Fixed #23727 -- Inhibited the post_migrate signal when using serialized_rollback.
When using a TransactionTestCase with serialized_rollback=True,
after creating the database and running its migrations (along with
emitting the post_migrate signal), the contents of the database
are serialized to _test_serialized_contents.

After the first test case, _fixture_teardown() would flush the
tables but then the post_migrate signal would be emitted and new
rows (with new PKs) would be created in the django_content_type
table. Then in any subsequent test cases in a suite,
_fixture_setup() attempts to deserialize the content of
 _test_serialized_contents, but these rows are identical to the
rows already in the database except for their PKs.  This causes an
IntegrityError due to the unique constraint in the
django_content_type table.

This change made it so that in the above scenario the post_migrate
signal is not emitted after flushing the tables, since it will be
repopulated during fixture_setup().
2015-08-24 08:59:20 -04:00
..
__init__.py Sorted imports in __init__.py files. 2015-06-27 11:53:33 -04:00
client.py Fixed #25163 -- Fixed exception handling in nested test client requests. 2015-08-11 10:01:24 -04:00
html.py Sorted imports with isort; refs #23860. 2015-02-06 08:16:28 -05:00
runner.py Fixed #19542: Made mirroring databases for tests work with Oracle 2015-06-05 12:29:15 +03:00
signals.py Fixed #16860 -- Added password validation to django.contrib.auth. 2015-06-07 19:31:20 +02:00
testcases.py Fixed #23727 -- Inhibited the post_migrate signal when using serialized_rollback. 2015-08-24 08:59:20 -04:00
utils.py Fixed #24526 -- Combined django.request/security loggers with the root logger. 2015-04-24 11:07:42 -04:00