summaryrefslogtreecommitdiff
path: root/tests/admin_scripts
diff options
context:
space:
mode:
authorAdam Chainz <me@adamj.eu>2016-12-23 15:55:00 +0000
committerTim Graham <timograham@gmail.com>2016-12-23 10:55:00 -0500
commit8669cf0e684696971f6b577f5023634cb16f307e (patch)
treec57f1d5dc8ff02a6721222fb212cc6db223a6572 /tests/admin_scripts
parent8d94d575f821b16a25bfd9fcf739f2ee2febe2be (diff)
Fixed #27626 -- Moved MEDIA_URL/STATIC_URL validation to a system check.
Diffstat (limited to 'tests/admin_scripts')
-rw-r--r--tests/admin_scripts/tests.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 656736be82..af3ada5bcc 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -1144,7 +1144,11 @@ class ManageSettingsWithSettingsErrors(AdminScriptTestCase):
Test listing available commands output note when only core commands are
available.
"""
- self.write_settings('settings.py', sdict={'MEDIA_URL': '"/no_ending_slash"'})
+ self.write_settings(
+ 'settings.py',
+ extra='from django.core.exceptions import ImproperlyConfigured\n'
+ 'raise ImproperlyConfigured()',
+ )
args = ['help']
out, err = self.run_manage(args)
self.assertOutput(out, 'only Django core commands are listed')