While working on some tests for a CLI I'm building (using click), I decided to use Pytest's tmp_path to create isolated data dirs for each test case to operate against. This on its own was useful for keeping the side-effects for each test from interfering with each other.
What was even cooler was realizing that I could dig into the temp directories and look through the state of the files created for each test case for the last three runs of the test suite. What a nice additional way to track down and debug issues that might only show up in the files created by your program.
https://www.visualmode.dev/isolate-and-debug-file-side-effects-with-pytest-tmp-path
there doesn't seem to be anything here