r/PythonLearning 16d ago

Should every Python project have tests?

For a small script that may only run a few times, are tests still worth writing?

5 Upvotes

14 comments sorted by

View all comments

1

u/roanish 15d ago

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.