diff options
| author | aryabartar <bartararya@gmail.com> | 2021-06-05 17:00:04 +0430 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-06-07 07:56:20 +0200 |
| commit | 651e527f9b3bc93f04ead654ca215d4252e25fb6 (patch) | |
| tree | b9f026dcad6bead1ced681f08a9726b1999a420b /tests/staticfiles_tests/test_storage.py | |
| parent | 7272e1963ffdf39c1d4fe225d5425a45dd095d11 (diff) | |
Fixed #32716 -- Fixed ManifestStaticFilesStorage crash when max_post_process_passes is 0.
Diffstat (limited to 'tests/staticfiles_tests/test_storage.py')
| -rw-r--r-- | tests/staticfiles_tests/test_storage.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index db655f2453..d5aa1c1c9d 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -463,6 +463,18 @@ class TestCollectionNoneHashStorage(CollectionTestCase): self.assertEqual(relpath, 'cached/styles.css') +@override_settings( + STATICFILES_STORAGE='staticfiles_tests.storage.NoPostProcessReplacedPathStorage' +) +class TestCollectionNoPostProcessReplacedPaths(CollectionTestCase): + run_collectstatic_in_setUp = False + + def test_collectstatistic_no_post_process_replaced_paths(self): + stdout = StringIO() + self.run_collectstatic(verbosity=1, stdout=stdout) + self.assertIn('post-processed', stdout.getvalue()) + + @override_settings(STATICFILES_STORAGE='staticfiles_tests.storage.SimpleStorage') class TestCollectionSimpleStorage(CollectionTestCase): hashed_file_path = hashed_file_path |
