def METHOD_NAME(key, value):
    def fixture():
        prev_value = getattr(config, key)
        setattr(config, key, value)
        yield
        setattr(config, key, prev_value)
    return pytest.fixture(fixture)