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