mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #26427 -- Ensured deleted setting doesn't appear in dir(settings)
This commit is contained in:
parent
57f76be35e
commit
669c29c8f4
2 changed files with 6 additions and 1 deletions
|
@ -256,6 +256,8 @@ class SettingsTests(SimpleTestCase):
|
|||
del settings.USE_L10N
|
||||
with self.assertRaises(AttributeError):
|
||||
getattr(settings, 'USE_L10N')
|
||||
self.assertNotIn('USE_I18N', dir(settings))
|
||||
self.assertNotIn('USE_L10N', dir(settings))
|
||||
self.assertEqual(settings.USE_I18N, previous_i18n)
|
||||
self.assertEqual(settings.USE_L10N, previous_l10n)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue