def env(monkeypatch): for variable, value in ENV_VARS.items(): monkeypatch.setenv(variable, value)
def limited_env(monkeypatch): for variable, value in ENV_VARS.items(): if variable in ["LOOKER_CLIENT_SECRET", "LOOKER_PROJECT"]: monkeypatch.delenv(variable, raising=False) else: monkeypatch.setenv(variable, value)
def clean_env(monkeypatch): for variable in ENV_VARS.keys(): monkeypatch.delenv(variable, raising=False)