diff options
| author | SaJH <wogur981208@gmail.com> | 2024-08-26 23:49:30 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-08-30 10:00:51 +0200 |
| commit | 2ff00251f929cc3e014dd447f6847196e66e69b8 (patch) | |
| tree | 10495a17414d9ecf9903a8ddc80110e5a3b44304 /tests/staticfiles_tests | |
| parent | 2b2a2c0e26e9e01792a0e9fee790aac48ff474bc (diff) | |
Fixed #35669 -- Improved max post-process passes exceeded error message in HashedFilesMixin.
Signed-off-by: SaJH <wogur981208@gmail.com>
Diffstat (limited to 'tests/staticfiles_tests')
| -rw-r--r-- | tests/staticfiles_tests/project/loop/baz.css | 3 | ||||
| -rw-r--r-- | tests/staticfiles_tests/test_storage.py | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/tests/staticfiles_tests/project/loop/baz.css b/tests/staticfiles_tests/project/loop/baz.css new file mode 100644 index 0000000000..4021a1b1e6 --- /dev/null +++ b/tests/staticfiles_tests/project/loop/baz.css @@ -0,0 +1,3 @@ +body { + background-color: #fafafa; +} diff --git a/tests/staticfiles_tests/test_storage.py b/tests/staticfiles_tests/test_storage.py index d6ea03b744..9ca4d62553 100644 --- a/tests/staticfiles_tests/test_storage.py +++ b/tests/staticfiles_tests/test_storage.py @@ -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): |
