diff options
author | inondle <qfulsher@gmail.com> | 2016-06-01 13:08:59 -0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-06-02 10:37:00 -0400 |
commit | 080dd74e016fbc99d3aaecd36ef932424042b768 (patch) | |
tree | 6ed5c00bf301b024ffd717c43b0c9f8595b05b8a /tests/apps | |
parent | 779829662d48a54ac427574e5e0c279b69519e42 (diff) | |
download | django-080dd74e016fbc99d3aaecd36ef932424042b768.tar.gz |
Fixed #26616 -- Improved error message when AppConfig.name is invalid.
Diffstat (limited to 'tests/apps')
-rw-r--r-- | tests/apps/tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/apps/tests.py b/tests/apps/tests.py index c7fff0e738..639ce97758 100644 --- a/tests/apps/tests.py +++ b/tests/apps/tests.py @@ -78,7 +78,8 @@ class AppsTests(SimpleTestCase): with self.assertRaises(ImportError): with self.settings(INSTALLED_APPS=['there is no such app']): pass - with self.assertRaises(ImportError): + msg = "Cannot import 'there is no such app'. Check that 'apps.apps.NoSuchApp.name' is correct." + with self.assertRaisesMessage(ImproperlyConfigured, msg): with self.settings(INSTALLED_APPS=['apps.apps.NoSuchApp']): pass |