summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests/cases.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2017-01-03 19:03:08 -0500
committerTim Graham <timograham@gmail.com>2017-01-04 12:50:31 -0500
commitc85831e4b7b5a7e4249df10327175b7251cb012d (patch)
treeadd2d3d1811666d40316a3b22bd08a58483e68e0 /tests/staticfiles_tests/cases.py
parentf60d4e704d71b8af3f5ed4651accd33851bdee23 (diff)
Fixed #27658 -- Prevented collectstatic from overwriting newer files in remote storages.
Thanks revimi for the initial patch.
Diffstat (limited to 'tests/staticfiles_tests/cases.py')
-rw-r--r--tests/staticfiles_tests/cases.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/staticfiles_tests/cases.py b/tests/staticfiles_tests/cases.py
index ea16101eb6..009672ee12 100644
--- a/tests/staticfiles_tests/cases.py
+++ b/tests/staticfiles_tests/cases.py
@@ -82,7 +82,8 @@ class CollectionTestCase(BaseStaticFilesMixin, SimpleTestCase):
super(CollectionTestCase, self).tearDown()
def run_collectstatic(self, **kwargs):
- call_command('collectstatic', interactive=False, verbosity=0,
+ verbosity = kwargs.pop('verbosity', 0)
+ call_command('collectstatic', interactive=False, verbosity=verbosity,
ignore_patterns=['*.ignoreme'], **kwargs)
def _get_file(self, filepath):