November 2025
Intermediate to advanced
542 pages
13h 43m
English
Skilled Python programmers agree that testing is one of the most important aspects of software development. Even though this chapter is placed near the end of the book, it is not an afterthought; everything we have studied so far will help us when writing tests. In this chapter, we’ll look at the following topics:
The importance of unit testing and test-driven development
The standard library unittest module
The pytest tool
The mock module
Code coverage
We’ll start with some of the fundamental reasons why automated software testing is so important.
Many programmers already know how important it is to test their code. If you’re among them, feel free to skim this section. ...
Read now
Unlock full access