summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorpablo <paul@eclipse-online.com>2019-09-26 12:05:32 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-27 23:06:55 +0200
commit5d63bf0bc338840cfbb10f3528cc5b5ca3170f9b (patch)
treea2eda93173daa25ae32553a93ec2cb259c994f37 /tests
parent0c655f1df2b167d7f24cf41910500850722b0c17 (diff)
[3.0.x] Fixed #30802 -- Prevented manifest creation when running collectstatic in dry run mode.
Backport of fa8fe09e4e2b538c5d50a559081861d5c0635d55 from master
Diffstat (limited to 'tests')
-rw-r--r--tests/staticfiles_tests/test_management.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py
index c89240915b..7630efbd9b 100644
--- a/tests/staticfiles_tests/test_management.py
+++ b/tests/staticfiles_tests/test_management.py
@@ -334,6 +334,11 @@ class TestCollectionDryRun(TestNoFilesCreated, CollectionTestCase):
super().run_collectstatic(dry_run=True)
+@override_settings(STATICFILES_STORAGE='django.contrib.staticfiles.storage.ManifestStaticFilesStorage')
+class TestCollectionDryRunManifestStaticFilesStorage(TestCollectionDryRun):
+ pass
+
+
class TestCollectionFilesOverride(CollectionTestCase):
"""
Test overriding duplicated files by ``collectstatic`` management command.