replace test setting changes with test-specific mock.patch.dicts