diff options
| author | Gabriel Muñumel <gabrielmunumel@gmail.com> | 2014-08-04 20:00:00 -0430 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-08-18 13:20:29 -0400 |
| commit | 3e241313a4cea5dbf53068181408a7c34f00c9ca (patch) | |
| tree | 3e3aa84675d2da107ac30956b881afb08bf21d5c /tests/admin_scripts | |
| parent | 5853c87a458f62ebd62d7809168355610de2570c (diff) | |
Fixed #23136 -- Added a message when sqlclear does nothing
Diffstat (limited to 'tests/admin_scripts')
| -rw-r--r-- | tests/admin_scripts/tests.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py index 0d622699e7..970e699b6d 100644 --- a/tests/admin_scripts/tests.py +++ b/tests/admin_scripts/tests.py @@ -297,7 +297,8 @@ class DjangoAdminFullPathDefaultSettings(AdminScriptTestCase): contains the test application specified using a full path. """ def setUp(self): - self.write_settings('settings.py', ['django.contrib.auth', 'django.contrib.contenttypes', 'admin_scripts']) + self.write_settings('settings.py', ['django.contrib.auth', 'django.contrib.contenttypes', + 'admin_scripts', 'admin_scripts.complex_app']) def tearDown(self): self.remove_settings('settings.py') @@ -316,6 +317,13 @@ class DjangoAdminFullPathDefaultSettings(AdminScriptTestCase): self.assertNoOutput(err) self.assertOutput(out, 'CREATE TABLE') + def test_sqlclear_builtin_with_settings(self): + "fulldefault: django-admin builtin commands succeed if a setting file is provided" + args = ['sqlclear', '--settings=test_project.settings', 'complex_app'] + out, err = self.run_django_admin(args) + self.assertNoOutput(err) + self.assertOutput(out, '-- App creates no tables in the database. Nothing to do.') + def test_builtin_with_environment(self): "fulldefault: django-admin builtin commands succeed if the environment contains settings" args = ['sqlall', 'admin_scripts'] |
