mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Removed an obsolete unicity check.
It doesn't account for app configs. Refs #21679.
This commit is contained in:
parent
d0eeddd6fc
commit
553500133c
2 changed files with 0 additions and 26 deletions
|
@ -292,27 +292,6 @@ class TestComplexSettingOverride(TestCase):
|
|||
'Overriding setting TEST_WARN can lead to unexpected behaviour.')
|
||||
|
||||
|
||||
class UniqueSettingsTests(TestCase):
|
||||
"""
|
||||
Tests for the INSTALLED_APPS setting.
|
||||
"""
|
||||
settings_module = settings
|
||||
|
||||
def setUp(self):
|
||||
self._installed_apps = self.settings_module.INSTALLED_APPS
|
||||
|
||||
def tearDown(self):
|
||||
self.settings_module.INSTALLED_APPS = self._installed_apps
|
||||
|
||||
def test_unique(self):
|
||||
"""
|
||||
An ImproperlyConfigured exception is raised if the INSTALLED_APPS contains
|
||||
any duplicate strings.
|
||||
"""
|
||||
with self.assertRaises(ImproperlyConfigured):
|
||||
self.settings_module.INSTALLED_APPS = ("myApp1", "myApp1", "myApp2", "myApp3")
|
||||
|
||||
|
||||
class TrailingSlashURLTests(TestCase):
|
||||
"""
|
||||
Tests for the MEDIA_URL and STATIC_URL settings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue