Pytest for Beginners Automated testing is an essential part of your development process. Well-written tests decrease the possibility of something breaking in a production environment. Tests also help you cover marginal cases and make refactoring easier. In our example app, pytest found 8 tests, and they all passed. At bottom of message, you can see how many tests passed/failed. Failing Test Your test won't always pass on the first try. In our own app, you could see how much tests were found. For more information, click here.