mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #27626 -- Moved MEDIA_URL/STATIC_URL validation to a system check.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user