From cfbdd587f6964f65fd8b7de049227fa1ead858da Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 26 Dec 2013 19:29:32 +0100 Subject: Added file forgotten in previous commit, plus one more test. --- tests/apps/tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/apps/tests.py') diff --git a/tests/apps/tests.py b/tests/apps/tests.py index 53afd8e8e9..c743ba04a3 100644 --- a/tests/apps/tests.py +++ b/tests/apps/tests.py @@ -73,8 +73,12 @@ class AppsTests(TestCase): def test_no_such_app(self): """ - Tests when INSTALLED_APPS contains an app config for an app that doesn't exist. + Tests when INSTALLED_APPS contains an app that doesn't exist, either + directly or via an app config. """ + with self.assertRaises(ImportError): + with self.settings(INSTALLED_APPS=['there is no such app']): + pass with self.assertRaises(ImportError): with self.settings(INSTALLED_APPS=['apps.apps.NoSuchApp']): pass -- cgit v1.3