Luis NorambuenaM to PythonEnglish · 1 month agounittest recipes for temporary files and directoriesadamj.euexternal-linkmessage-square5fedilinkarrow-up117arrow-down10file-text
arrow-up117arrow-down1external-linkunittest recipes for temporary files and directoriesadamj.euLuis NorambuenaM to PythonEnglish · 1 month agomessage-square5fedilinkfile-text
minus-squarelogging_strictlinkfedilinkarrow-up1·1 month 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