diff options
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/tests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 1e4477ed34..de220f0282 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -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." |
