diff options
| author | Tim Graham <timograham@gmail.com> | 2017-01-03 19:03:08 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-04 12:50:31 -0500 |
| commit | c85831e4b7b5a7e4249df10327175b7251cb012d (patch) | |
| tree | add2d3d1811666d40316a3b22bd08a58483e68e0 /tests/staticfiles_tests/cases.py | |
| parent | f60d4e704d71b8af3f5ed4651accd33851bdee23 (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.py | 3 |
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): |
