mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #16424 -- Fixed regression in collect static management command introduced in r16509 that prevented prefixed collection.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16519 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -54,7 +54,10 @@ StaticFilesTestCase = override_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 = (os.path.join(TEST_ROOT, 'project', 'documents'),),
|
||||
STATICFILES_DIRS = (
|
||||
os.path.join(TEST_ROOT, 'project', 'documents'),
|
||||
('prefix', os.path.join(TEST_ROOT, 'project', 'prefixed')),
|
||||
),
|
||||
STATICFILES_FINDERS = (
|
||||
'django.contrib.staticfiles.finders.FileSystemFinder',
|
||||
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
|
||||
@@ -105,6 +108,7 @@ class TestDefaults(object):
|
||||
Can find a file in a STATICFILES_DIRS directory.
|
||||
"""
|
||||
self.assertFileContains('test.txt', 'Can we find')
|
||||
self.assertFileContains(os.path.join('prefix', 'test.txt'), 'Prefix')
|
||||
|
||||
def test_staticfiles_dirs_subdir(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user