https://adamj.eu/tech/2024/12/30/python-temporary-files-directories-unittest/
#testing #unittest #tmp
#testing #unittest #tmp
adamj.eu
Python: create temporary files and directories in unittest - Adam Johnson
Sometimes, tests need temporary files or directories. You can do this in Python’s unittest with the standard library tempfile module. Let’s look at some recipes to do so within individual tests and setUp().