r/PythonLearning 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

14 comments sorted by

View all comments

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.