A Gentle Introduction to Testing with PyTest
A test is code that executes code. When you start developing a new feature for your Python project, you could formalize its requirements as code. When you do so, you not only document the way your implementation’s code shall be used, but you can also run all the tests automatically to always make sure your code matches your requirements. One such tool which assists you in doing this is
pytest
and it’s probably the most popular testing tool in the Python universe.
Source: A Gentle Introduction to Testing with PyTest, an article by Bas Steins.