You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First - thank you so much for pytest - amazing tool and I love it!
The tmp_path and tmpdir fixtures are excellent, but can easily lead to changing current directory for all tests without realizing it (which can be confusing in error output).
It'd be useful to have a monkeypatch-style helper to change the directory built-in to pytest, equivalent to the chdir fixture below.
The best-est implementation would make tmpdir.chdir()automatically restore working environment after test completed, but I could see that being complicated.
a detailed description of the bug or suggestion
output of pip list from the virtual environment you are using
oof 😅 slightly embarrassing haha (I swear I searched for it! haha) - lemme put up a PR to update the docs to call this out with tmpdir/tmp_path examples
First - thank you so much for pytest - amazing tool and I love it!
The
tmp_path
andtmpdir
fixtures are excellent, but can easily lead to changing current directory for all tests without realizing it (which can be confusing in error output).It'd be useful to have a monkeypatch-style helper to change the directory built-in to pytest, equivalent to the
chdir
fixture below.The best-est implementation would make
tmpdir.chdir()
automatically restore working environment after test completed, but I could see that being complicated.pip list
from the virtual environment you are usingpip list
The text was updated successfully, but these errors were encountered: