mirror of
https://github.com/django/django.git
synced 2025-06-08 21:19:13 +00:00
add a test for a command that doesn't require settings
This commit is contained in:
parent
e2b4c14281
commit
1b98aa68e0
@ -879,6 +879,12 @@ class ManageNoSettings(AdminScriptTestCase):
|
||||
self.assertNoOutput(out)
|
||||
self.assertOutput(err, "Settings module bad_settings could not be imported")
|
||||
|
||||
def test_startapp_with_bad_settings(self):
|
||||
args = ["startapp", "--settings=bad_settings", "app1"]
|
||||
out, err = self.run_manage(args)
|
||||
self.assertNoOutput(out)
|
||||
self.assertNoOutput(err)
|
||||
|
||||
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