summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
diff options
context:
space:
mode:
authordarkryder <sambhav13085@iiitd.ac.in>2015-01-21 22:25:57 +0530
committerTim Graham <timograham@gmail.com>2015-02-03 14:59:45 -0500
commit9ec8aa5e5d42ac4529846f7eae6bf4982800abff (patch)
tree6a1195ff3831031f8207e18e4dcf69015fb4c50c /tests/staticfiles_tests
parent570912a97d5051fa3aeacd9d16c3be9afcf92198 (diff)
Fixed #24149 -- Normalized tuple settings to lists.
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r--tests/staticfiles_tests/tests.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/staticfiles_tests/tests.py b/tests/staticfiles_tests/tests.py
index 1d5ccfc075..43cee9e636 100644
--- a/tests/staticfiles_tests/tests.py
+++ b/tests/staticfiles_tests/tests.py
@@ -33,16 +33,16 @@ TEST_SETTINGS = {
'STATIC_URL': '/static/',
'MEDIA_ROOT': os.path.join(TEST_ROOT, 'project', 'site_media', 'media'),
'STATIC_ROOT': os.path.join(TEST_ROOT, 'project', 'site_media', 'static'),
- 'STATICFILES_DIRS': (
+ 'STATICFILES_DIRS': [
os.path.join(TEST_ROOT, 'project', 'documents'),
('prefix', os.path.join(TEST_ROOT, 'project', 'prefixed')),
- ),
- 'STATICFILES_FINDERS': (
+ ],
+ 'STATICFILES_FINDERS': [
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
'django.contrib.staticfiles.finders.DefaultStorageFinder',
- ),
- 'INSTALLED_APPS': (
+ ],
+ 'INSTALLED_APPS': [
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.admin.apps.SimpleAdminConfig',
@@ -50,7 +50,7 @@ TEST_SETTINGS = {
'staticfiles_tests',
'staticfiles_tests.apps.test',
'staticfiles_tests.apps.no_label',
- ),
+ ],
}
from django.contrib.staticfiles.management.commands.collectstatic import Command as CollectstaticCommand
@@ -600,8 +600,8 @@ class TestHashedFiles(object):
self.assertIn(b"other.d41d8cd98f00.css", content)
@override_settings(
- STATICFILES_DIRS=(os.path.join(TEST_ROOT, 'project', 'faulty'),),
- STATICFILES_FINDERS=('django.contrib.staticfiles.finders.FileSystemFinder',),
+ STATICFILES_DIRS=[os.path.join(TEST_ROOT, 'project', 'faulty')],
+ STATICFILES_FINDERS=['django.contrib.staticfiles.finders.FileSystemFinder'],
)
def test_post_processing_failure(self):
"""
@@ -898,7 +898,7 @@ class TestDefaultStorageFinder(StaticFilesTestCase, FinderTestCase):
@override_settings(
- STATICFILES_FINDERS=('django.contrib.staticfiles.finders.FileSystemFinder',),
+ STATICFILES_FINDERS=['django.contrib.staticfiles.finders.FileSystemFinder'],
STATICFILES_DIRS=[os.path.join(TEST_ROOT, 'project', 'documents')],
)
class TestMiscFinder(TestCase):