summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2015-02-21 13:56:35 +0100
committerTim Graham <timograham@gmail.com>2015-02-21 13:07:42 -0500
commitde3bda9cd36ac86cc5906bcc524e8cdd11dbb77d (patch)
treecc77821854333341d23283e9d0ac60b42543342a
parent5c02c75068704b1c51544dd331753619304b173d (diff)
[1.8.x] [1.8.x] Avoided collecting admin static files in tests.
This makes the staticfiles tests 2.5 times faster. Backport of 2bb5b0e09863df65756fe0050406163cb70750f1 from master Backport of bd059e3f8c6311dcaf8afe5e29ef373f7f84cf26 from master
-rw-r--r--tests/staticfiles_tests/tests.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py
index 935409eed1..c24523c16c 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)