1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #24776 -- Improved apps.get_app_config() error message on fully-qualified package names.

This commit is contained in:
Peter Inglesby
2015-05-12 10:02:23 +01:00
committed by Tim Graham
parent 70faaccc3e
commit 0688a7946a
4 changed files with 17 additions and 8 deletions

View File

@@ -216,7 +216,7 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase):
# Excluding a bogus app should throw an error
with six.assertRaisesRegex(self, management.CommandError,
"Unknown app in excludes: foo_app"):
"No installed app with label 'foo_app'."):
self._dumpdata_assert(['fixtures', 'sites'], '', exclude_list=['foo_app'])
# Excluding a bogus model should throw an error