1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Fixed #35669 -- Improved max post-process passes exceeded error message in HashedFilesMixin.

Signed-off-by: SaJH <wogur981208@gmail.com>
This commit is contained in:
SaJH
2024-08-26 23:49:30 +09:00
committed by Sarah Boyce
parent 2b2a2c0e26
commit 2ff00251f9
3 changed files with 14 additions and 8 deletions

View File

@@ -186,7 +186,9 @@ class TestHashedFiles:
err = StringIO()
with self.assertRaisesMessage(RuntimeError, "Max post-process passes exceeded"):
call_command("collectstatic", interactive=False, verbosity=0, stderr=err)
self.assertEqual("Post-processing 'All' failed!\n\n", err.getvalue())
self.assertEqual(
"Post-processing 'bar.css, foo.css' failed!\n\n", err.getvalue()
)
self.assertPostCondition()
def test_post_processing(self):