From 2bb5b0e09863df65756fe0050406163cb70750f1 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Sat, 21 Feb 2015 13:56:35 +0100 Subject: [PATCH] Avoided collecting admin static files in tests. This makes the staticfiles tests 2.5 times faster. --- tests/staticfiles_tests/tests.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py index 1867658263e..fb6fb61ce83 100644 --- a/tests/staticfiles_tests/tests.py +++ b/tests/staticfiles_tests/tests.py @@ -43,9 +43,6 @@ TEST_SETTINGS = { 'django.contrib.staticfiles.finders.DefaultStorageFinder', ], 'INSTALLED_APPS': [ - 'django.contrib.contenttypes', - 'django.contrib.auth', - 'django.contrib.admin.apps.SimpleAdminConfig', 'django.contrib.staticfiles', 'staticfiles_tests', 'staticfiles_tests.apps.test', @@ -247,8 +244,6 @@ class TestFindStatic(CollectionTestCase, TestDefaults): searched_locations) self.assertIn(os.path.join('staticfiles_tests', 'apps', 'no_label', 'static'), searched_locations) - self.assertIn(os.path.join('django', 'contrib', 'admin', 'static'), - searched_locations) # FileSystemFinder searched locations self.assertIn(TEST_SETTINGS['STATICFILES_DIRS'][1][1], searched_locations) self.assertIn(TEST_SETTINGS['STATICFILES_DIRS'][0], searched_locations)