1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Added file forgotten in previous commit, plus one more test.

This commit is contained in:
Aymeric Augustin
2013-12-26 19:29:32 +01:00
parent e179291fa5
commit cfbdd587f6
2 changed files with 32 additions and 1 deletions

View File

@@ -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