monkeypatch
Also written: monkeypatch.setenv, monkeypatch.delenv, monkeypatch.setattr
A pytest fixture that changes things, such as environment variables, for one test only. Pytest undoes the change afterward.
Also written: monkeypatch.setenv, monkeypatch.delenv, monkeypatch.setattr
A pytest fixture that changes things, such as environment variables, for one test only. Pytest undoes the change afterward.