﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
30871	override_settings() does not restore partially deleted settings.	Hodossy, Szabolcs	nobody	"When a settings is a dictionary, and only a key in that dicitonary needs to be deleted for a test, the @override_settings() decorator does not restore the original settings value.

It is a common practice for apps to use a single settings dictionary for their own configuration. A quick example can be seen here with the django-auth-adfs package: https://github.com/hodossy/django-auth-adfs at commit e11eca87ef96a3a074fc0846feb71183182e53dd.

To reproduce the issue, you can clone the project, install dependecies and run 'python manage.py test' to see test failing with KeyError due to above error."	Bug	closed	Testing framework	dev	Normal	invalid			Unreviewed	0	0	0	0	0	0
