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

Fixed #17895 -- Made override_settings send the setting_changed signal both when a setting is overridden and when it's restored.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17708 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Aymeric Augustin
2012-03-13 23:02:31 +00:00
parent 2a0f4578ef
commit 4b14546215
3 changed files with 17 additions and 13 deletions

View File

@@ -132,6 +132,7 @@ class SettingsTests(TestCase):
self.assertRaises(AttributeError, getattr, settings, 'TEST')
with self.settings(TEST='override'):
self.assertEqual(testvalue, 'override')
self.assertEqual(testvalue, None)
@override_settings(TEST='override')
def test_signal_callback_decorator(self):