pytest fixture monkeypatch does exactly that, in a slightly more elegant way…1IgorTGHaki BenitaFollowAug 22, 2017 · 1 min readHey Igor, thanks for the link. I guess I’m in good company because this is ineed very similar.