diff options
| author | Giovanni Fabbretti <gfabbretti8> | 2024-08-23 15:23:51 +0200 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-08-23 17:26:28 +0200 |
| commit | f72bbd44808452f4a70be5f7b9d35e46dee32e2d (patch) | |
| tree | fc5106d93e5dfcfce08fb0677e3b98edd5f0f59b /tests/staticfiles_tests | |
| parent | 47b921391f1df0c5c15e965b43b3a435830ed89b (diff) | |
Fixed #35689 -- Handled custom labels in LabelCommand.missing_args_message.
Diffstat (limited to 'tests/staticfiles_tests')
| -rw-r--r-- | tests/staticfiles_tests/test_management.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/staticfiles_tests/test_management.py b/tests/staticfiles_tests/test_management.py index c0d3817383..1b9179af49 100644 --- a/tests/staticfiles_tests/test_management.py +++ b/tests/staticfiles_tests/test_management.py @@ -124,6 +124,11 @@ class TestFindStatic(TestDefaults, CollectionTestCase): searched_locations, ) + def test_missing_args_message(self): + msg = "Enter at least one staticfile." + with self.assertRaisesMessage(CommandError, msg): + call_command("findstatic") + class TestConfiguration(StaticFilesTestCase): def test_location_empty(self): |
