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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user