Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we delete a env variable #9

Open
zxyviopond opened this issue May 6, 2018 · 2 comments
Open

Can we delete a env variable #9

zxyviopond opened this issue May 6, 2018 · 2 comments

Comments

@zxyviopond
Copy link

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

@miketheman
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants