diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2021-02-25 18:40:18 -0500 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-02-26 11:38:32 +0100 |
commit | 337cd652a5f7d7fcbc6c413d11f8bac1f87379d0 (patch) | |
tree | 705f0857e1dc7ea81799ddaf0a9d8adb1b213a67 /tests/staticfiles_tests | |
parent | 179ee13eb37348cd87169a198aec18fedccc8668 (diff) | |
download | django-337cd652a5f7d7fcbc6c413d11f8bac1f87379d0.tar.gz |
Fixed #28607 -- Prevented duplicates in HashedFilesMixin post-processing results.
Thanks Ed Morley for the implementation idea.
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r-- | tests/staticfiles_tests/test_storage.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index dc45a0b839..7ae88e6c68 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -203,6 +203,8 @@ class TestHashedFiles: self.assertIn(os.path.join('cached', 'css', 'window.css'), stats['post_processed']) self.assertIn(os.path.join('cached', 'css', 'img', 'window.png'), stats['unmodified']) self.assertIn(os.path.join('test', 'nonascii.css'), stats['post_processed']) + # No file should be yielded twice. + self.assertCountEqual(stats['post_processed'], set(stats['post_processed'])) self.assertPostCondition() def test_css_import_case_insensitive(self): |