Opened 8 years ago
Closed 8 years ago
#27057 closed Cleanup/optimization (fixed)
Use _SavedSettings in setup_test_environment() to store pre-test settings
Reported by: | Chris Jerdonek | Owned by: | Chris Jerdonek |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Currently, setup_test_environment()
stores pre-test settings in "arbitrary (but related)" modules. See 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 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.
Change History (4)
comment:1 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 8 years ago
Has patch: | set |
---|
I posted a PR for this here.