summaryrefslogtreecommitdiff
path: root/tests/regressiontests/admin_scripts/tests.py
diff options
context:
space:
mode:
authorKaren Tracey <kmtracey@gmail.com>2010-04-14 19:14:23 +0000
committerKaren Tracey <kmtracey@gmail.com>2010-04-14 19:14:23 +0000
commitef6308db01f7b57467f62b731ce968a9fa18fc48 (patch)
tree2600e4449d51cc536c0927d88b23228a8c7174f5 /tests/regressiontests/admin_scripts/tests.py
parent65a9d73069349800fb956a19fd19948956da3208 (diff)
[1.1.X] Fixed #13335: Adjusted the r12950 fix to properly handle import errors resulting from nested calls to load_app.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12973 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_scripts/tests.py')
-rw-r--r--tests/regressiontests/admin_scripts/tests.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/regressiontests/admin_scripts/tests.py b/tests/regressiontests/admin_scripts/tests.py
index d7e21ce92f..d17c0de7b4 100644
--- a/tests/regressiontests/admin_scripts/tests.py
+++ b/tests/regressiontests/admin_scripts/tests.py
@@ -958,7 +958,7 @@ class ManageMultipleSettings(AdminScriptTestCase):
self.assertOutput(err, "Unknown command: 'noargs_command'")
-class ManageValidateImportErrorsReported(AdminScriptTestCase):
+class ManageValidate(AdminScriptTestCase):
def tearDown(self):
self.remove_settings('settings.py')
@@ -977,7 +977,17 @@ class ManageValidateImportErrorsReported(AdminScriptTestCase):
out, err = self.run_manage(args)
self.assertNoOutput(out)
self.assertOutput(err, 'ImportError')
-
+
+ def test_complex_app(self):
+ "manage.py validate does not raise an ImportError validating a complex app with nested calls to load_app"
+ self.write_settings('settings.py',
+ apps=['admin_scripts.complex_app', 'admin_scripts.simple_app'],
+ sdict={'DEBUG': True})
+ args = ['validate']
+ out, err = self.run_manage(args)
+ self.assertNoOutput(err)
+ self.assertOutput(out, '0 errors found')
+
##########################################################################
# COMMAND PROCESSING TESTS