diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-14 11:11:52 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-12-17 10:17:45 +0100 |
| commit | 69039becde74308d6218c72c1e410cd0049fd2bd (patch) | |
| tree | 4c7c669ad326fb376ecda6bf8532d3000a293518 /tests/empty | |
| parent | 2732edc5f2305cf454d5df43c7d85a68c639493e (diff) | |
Deprecated get_app().
Diffstat (limited to 'tests/empty')
| -rw-r--r-- | tests/empty/tests.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/empty/tests.py b/tests/empty/tests.py index 824c1f16e7..9fcd7a978e 100644 --- a/tests/empty/tests.py +++ b/tests/empty/tests.py @@ -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') |
