﻿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
27057	Use _SavedSettings in setup_test_environment() to store pre-test settings	Chris Jerdonek	Chris Jerdonek	"Currently, `setup_test_environment()` stores pre-test settings in ""arbitrary (but related)"" modules. See [https://github.com/django/django/blob/5890b1613c0a348750a11239ab73a9f0075314ee/django/test/utils.py#L101 here] for the code.

This issue is to simplify this code somewhat and make it more consistent by storing all pre-test settings in the private `_SavedSettings` class. (See [https://code.djangoproject.com/ticket/27019#comment:7 here] and subsequent comments for some discussion of this.)

This will also make it easier to write our first unit test of the ""common path"" of  `setup_test_environment()`.  Currently, only the edge case of calling the function twice has its own test."	Cleanup/optimization	closed	Testing framework	dev	Normal	fixed			Accepted	1	0	0	0	0	0
