summaryrefslogtreecommitdiff
path: root/tests/staticfiles_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/staticfiles_tests')
-rw-r--r--tests/staticfiles_tests/test_management.py5
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):