mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #27626 -- Moved MEDIA_URL/STATIC_URL validation to a system check.
This commit is contained in:
parent
8d94d575f8
commit
8669cf0e68
6 changed files with 53 additions and 93 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue