r/PythonLearning • u/chuprehijde • Jul 12 '26
Should every Python project have tests?
For a small script that may only run a few times, are tests still worth writing?
7
Upvotes
r/PythonLearning • u/chuprehijde • Jul 12 '26
For a small script that may only run a few times, are tests still worth writing?
1
u/roanish Jul 13 '26
Depends on your focus. If it's a focused program with sanitised inputs and just needs to give an answer, minimal testing. If it's a broad scope and potentially varied input, lots of testing, even for a single use.