summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-10-21 21:21:49 +0200
committerClaude Paroz <claude@2xlibre.net>2013-10-21 21:26:48 +0200
commita098bee1b9fa4df64f3fd72ff5cbae43bf27e539 (patch)
tree9827b4cd49439643287a4ecb365f7a42fe17383d /tests/admin_scripts
parent86c248aa646183ef4a1cb407bb3e4cb597272f63 (diff)
Fixed #19724 -- Output note when showing only core management commands
When listing available management commands, only core commands are listed if settings have any error. This commit adds a note in this case so errors are not totally silently skipped. Thanks Peter Davis for the report.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index e5d2acd3a5..7837a60003 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1055,6 +1055,17 @@ class ManageSettingsWithSettingsErrors(AdminScriptTestCase):
self.assertNoOutput(out)
self.assertOutput(err, "KeyError: 'blah'")
+ def test_help(self):
+ """
+ Test listing available commands output note when only core commands are
+ available.
+ """
+ self.write_settings('settings.py', sdict={'MEDIA_URL': '"/no_ending_slash"'})
+ args = ['help']
+ out, err = self.run_manage(args)
+ self.assertOutput(out, 'only Django core commands are listed')
+ self.assertNoOutput(err)
+
class ManageValidate(AdminScriptTestCase):
def tearDown(self):