mirror of
https://github.com/django/django.git
synced 2025-06-08 13:09:13 +00:00
add test for case in the ticket
This commit is contained in:
parent
0bc79fc543
commit
e7d23bf59f
@ -873,6 +873,12 @@ class ManageNoSettings(AdminScriptTestCase):
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "No module named '?bad_settings'?", regex=True)
|
||||
|
||||
def test_runserver_with_bad_settings(self):
|
||||
args = ["runserver", "--settings=bad_settings", "--nostatic"]
|
||||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, 'Settings module bad_settings could not be imported')
|
||||
|
||||
def test_builtin_with_bad_environment(self):
|
||||
"""
|
||||
no settings: manage.py builtin commands fail if settings file (from
|
||||
|
Loading…
x
Reference in New Issue
Block a user