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().
Besides showing off what a degenerate can accomplish.
I can run groupings or part of a grouping of unittest testcases in parallel. From a GUI. By typing ~6-10 keystrokes.
Just never got around to implementing this using pytest. And cuz of that, never published the GUI package.
Search algorithms matter
When humans read ^^ nothing registers in the brain. Could write it 1000x and would always fall on closed brains.
People would still go back to recommending their favorite File Managers (has no search algo) or managing their contacts within each social media platform. And infinite scroll new feeds.
why use unittest?
Besides showing off what a degenerate can accomplish.
I can run groupings or part of a grouping of unittest testcases in parallel. From a GUI. By typing ~6-10 keystrokes.
Just never got around to implementing this using pytest. And cuz of that, never published the GUI package.
Search algorithms matter
When humans read ^^ nothing registers in the brain. Could write it 1000x and would always fall on closed brains.
People would still go back to recommending their favorite File Managers (has no search algo) or managing their contacts within each social media platform. And infinite scroll new feeds.
Without thinking twice about it.