Deprecated get_app().

This commit is contained in:
Aymeric Augustin 2013-12-14 11:11:52 +01:00
parent 2732edc5f2
commit 69039becde
13 changed files with 55 additions and 62 deletions

View file

@ -1,5 +1,4 @@
from django.apps import app_cache
from django.core.exceptions import ImproperlyConfigured
from django.test import TestCase
from django.test.utils import override_settings
from django.utils import six
@ -31,6 +30,6 @@ class NoModelTests(TestCase):
"""
@override_settings(INSTALLED_APPS=("empty.no_models",))
def test_no_models(self):
with six.assertRaisesRegex(self, ImproperlyConfigured,
with six.assertRaisesRegex(self, LookupError,
"No app with label 'no_models'."):
app_cache.get_app('no_models')
app_cache.get_app_config('no_models')