Luis Norambuena@programming.devM to Python@programming.devEnglish · 2 months agounittest recipes for temporary files and directoriesadamj.euexternal-linkmessage-square5fedilinkarrow-up116arrow-down10file-text
arrow-up116arrow-down1external-linkunittest recipes for temporary files and directoriesadamj.euLuis Norambuena@programming.devM to Python@programming.devEnglish · 2 months agomessage-square5fedilinkfile-text
minus-squarelogging_strict@programming.devlinkfedilinkarrow-up1·2 months agoOften using pytest to debug code. When using a tmp_path, would prefer not to delete the file tree in the end. When the test fails, can run the code against the folder tree cd into the tmp folder activate the venv run the code
Often using pytest to debug code. When using a tmp_path, would prefer not to delete the file tree in the end.
When the test fails, can run the code against the folder tree
cd
into the tmp folder