mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Fixed #30872 -- Improved unknown command message when settings are manually configured.
This commit is contained in:
parent
dee687e93a
commit
1de9a92295
2 changed files with 10 additions and 1 deletions
|
@ -634,6 +634,15 @@ class DjangoAdminSettingsDirectory(AdminScriptTestCase):
|
|||
# of the generated manage.py script
|
||||
##########################################################################
|
||||
|
||||
class ManageManullyConfiguredSettings(AdminScriptTestCase):
|
||||
"""Customized manage.py calling settings.configure()."""
|
||||
def test_non_existent_command_output(self):
|
||||
out, err = self.run_manage(['invalid_command'], manage_py='configured_settings_manage.py')
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "Unknown command: 'invalid_command'")
|
||||
self.assertNotInOutput(err, 'No Django settings specified')
|
||||
|
||||
|
||||
class ManageNoSettings(AdminScriptTestCase):
|
||||
"A series of tests for manage.py when there is no settings.py file."
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue