From 722344ee59fb89ea2cd5b906d61b35f76579de4e Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Thu, 19 May 2016 09:31:49 -0400 Subject: Refs #24067 -- Fixed contenttypes rename tests failures on Oracle. Broke the initial migration in two to work around #25530 and added 'django.contrib.auth' to the available_apps to make sure its tables are also flushed as Oracle doesn't implement cascade deletion in sql_flush(). Thanks Tim for the report. --- tests/contenttypes_tests/tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/contenttypes_tests/tests.py') diff --git a/tests/contenttypes_tests/tests.py b/tests/contenttypes_tests/tests.py index 7f65fb6f9b..123e169fbc 100644 --- a/tests/contenttypes_tests/tests.py +++ b/tests/contenttypes_tests/tests.py @@ -454,7 +454,11 @@ class ContentTypesMultidbTestCase(TestCase): MIGRATION_MODULES=dict(settings.MIGRATION_MODULES, contenttypes_tests='contenttypes_tests.operations_migrations'), ) class ContentTypeOperationsTests(TransactionTestCase): - available_apps = ['django.contrib.contenttypes', 'contenttypes_tests'] + available_apps = [ + 'contenttypes_tests', + 'django.contrib.contenttypes', + 'django.contrib.auth', + ] def setUp(self): app_config = apps.get_app_config('contenttypes_tests') -- cgit v1.3