Fixed #35689 -- Handled custom labels in LabelCommand.missing_args_message.

This commit is contained in:
Giovanni Fabbretti 2024-08-23 15:23:51 +02:00 committed by Sarah Boyce
parent 47b921391f
commit f72bbd4480
3 changed files with 27 additions and 1 deletions

View file

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