From fa8fe09e4e2b538c5d50a559081861d5c0635d55 Mon Sep 17 00:00:00 2001 From: pablo Date: Thu, 26 Sep 2019 12:05:32 -0700 Subject: Fixed #30802 -- Prevented manifest creation when running collectstatic in dry run mode. --- tests/staticfiles_tests/test_management.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/staticfiles_tests') 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. -- cgit v1.3