- Notifications
You must be signed in to change notification settings - Fork441
Closed
Description
@pytest.fixture(scope="function")def editsdefaults(): restore = control.config.defaults.copy() yield control.config.defaults = restore.copy()
The fixture replaces the globalconfig.config.defaults
with acopy after the yield.
Other modules that have already importedcontrol.config.defaults
will still have their original reference.
A proper restore should replace all items in dictionary separately instead.
Metadata
Metadata
Assignees
Labels
No labels