MobileDynasty / pytest-env

pytest plugin used to set environment variables
MIT License
217 stars 23 forks source link

Can we delete a env variable #9

Open zxyviopond opened 6 years ago

zxyviopond commented 6 years ago

Run from a script probably work but I hope to have it more convenient to delete a env variable

miketheman commented 5 years ago

I've found that using the pytest monkeypatch.delenv("ENVVAR") works well for this.

https://docs.pytest.org/en/latest/reference.html#_pytest.monkeypatch.MonkeyPatch.delenv

gaborbernat commented 1 year ago

Development moved to https://github.com/pytest-dev/pytest-env