mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Added file forgotten in previous commit, plus one more test.
This commit is contained in:
parent
e179291fa5
commit
cfbdd587f6
2 changed files with 32 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue