summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/test_management.py
diff options
context:
space:
mode:
authorDaniel Wiesmann <yellowcap@users.noreply.github.com>2018-07-13 21:48:19 +0100
committerTim Graham <timograham@gmail.com>2018-07-13 16:48:19 -0400
commit8f75d21a2e6d255848ae441d858c6ea819e3d100 (patch)
tree9e78cbbcc99557d324332618d27ec4be0227af0e /tests/staticfiles_tests/test_management.py
parentc28bf990d71a8befb954482e3d6a925e89f3176f (diff)
Fixed #28566 -- Added path matching to collectstatic ignore patterns.
Diffstat (limited to 'tests/staticfiles_tests/test_management.py')
-rw-r--r--tests/staticfiles_tests/test_management.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py
index 3a6d536013..20595ad118 100644
--- a/tests/staticfiles_tests/test_management.py
+++ b/tests/staticfiles_tests/test_management.py
@@ -319,11 +319,12 @@ class TestCollectionExcludeNoDefaultIgnore(TestDefaults, CollectionTestCase):
class TestCollectionCustomIgnorePatterns(CollectionTestCase):
def test_custom_ignore_patterns(self):
"""
- A custom ignore_patterns list, ['*.css'] in this case, can be specified
- in an AppConfig definition.
+ A custom ignore_patterns list, ['*.css', '*/vendor/*.js'] in this case,
+ can be specified in an AppConfig definition.
"""
self.assertFileNotFound('test/nonascii.css')
self.assertFileContains('test/.hidden', 'should be ignored')
+ self.assertFileNotFound(os.path.join('test', 'vendor', 'module.js'))
class TestCollectionDryRun(TestNoFilesCreated, CollectionTestCase):