Avoided collecting admin static files in tests.

This makes the staticfiles tests 2.5 times faster.
This commit is contained in:
Aymeric Augustin 2015-02-21 13:56:35 +01:00
parent 1d9d39fa1c
commit 2bb5b0e098
1 changed files with 0 additions and 5 deletions

View File

@ -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)