1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #28607 -- Prevented duplicates in HashedFilesMixin post-processing results.

Thanks Ed Morley for the implementation idea.
This commit is contained in:
Jacob Walls
2021-02-25 18:40:18 -05:00
committed by Mariusz Felisiak
parent 179ee13eb3
commit 337cd652a5
2 changed files with 17 additions and 4 deletions

View File

@@ -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):