mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #21871 -- Fixed Apps.is_installed() for apps with custom label.
Thanks Aymeric for design discussion.
This commit is contained in:
@@ -109,6 +109,7 @@ class AppsTests(TestCase):
|
||||
@override_settings(INSTALLED_APPS=SOME_INSTALLED_APPS)
|
||||
def test_is_installed(self):
|
||||
self.assertTrue(apps.is_installed('django.contrib.admin'))
|
||||
self.assertTrue(apps.is_installed('django.contrib.auth'))
|
||||
self.assertTrue(apps.is_installed('django.contrib.staticfiles'))
|
||||
self.assertFalse(apps.is_installed('django.contrib.webdesign'))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user