From 03a2c783e8df48f8a46521bce43707e999f50d57 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Sun, 19 Aug 2018 08:04:57 -0700 Subject: [PATCH] Fixed admin_checks tests to run in isolation. --- tests/admin_checks/tests.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py index f4fabef301..a968cd5ba3 100644 --- a/tests/admin_checks/tests.py +++ b/tests/admin_checks/tests.py @@ -39,7 +39,12 @@ class MyAdmin(admin.ModelAdmin): @override_settings( SILENCED_SYSTEM_CHECKS=['fields.W342'], # ForeignKey(unique=True) - INSTALLED_APPS=['django.contrib.auth', 'django.contrib.contenttypes', 'admin_checks'] + INSTALLED_APPS=[ + 'django.contrib.admin', + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'admin_checks', + ], ) class SystemChecksTestCase(SimpleTestCase): @@ -69,11 +74,6 @@ class SystemChecksTestCase(SimpleTestCase): self.assertEqual(admin.checks.check_dependencies(), []) @override_settings( - INSTALLED_APPS=[ - 'django.contrib.admin', - 'django.contrib.auth', - 'django.contrib.contenttypes', - ], TEMPLATES=[{ 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [],