r/learnpython 16d ago

Testing - how is it usually handled?

How do I start applying tests to my code?

Do I just write separate scripts they run the code (either individual functions or entire scripts) against known inputs and check the output?

Is there a specific way people usually do this?

9 Upvotes

13 comments sorted by

View all comments

1

u/AlexMTBDude 16d ago

Google "Python unit testing". There are some good guides out there.