I want a rule that will disallow patching os.environ
with mock.patch.dict
#252
Labels
enhancement
New feature or request
os.environ
with mock.patch.dict
#252
First of all, thank you for developing this amazing flake8 plugin. I love it :)
Rule request
I want a rule that will disallow patching os.environ with mock.patch.dict:
Instead, we should use
monkeypatch.setenv
ormonkeypatch.delenv
to set or remove relevant environment variables. This also helps simply the code.Description
Rationale
The text was updated successfully, but these errors were encountered: