Unit Testing in Python
Unit testing—which involves testing small, isolatable pieces of code—can help you catch and fix bugs before they crop up in your final product. And by adopting test-driven development (TDD) and writing unit tests before production code, you can take even greater responsibility for your project’s quality. Curious about how to best approach unit testing in your own Python projects? This course shows you how. Join instructor Jasmine Omeke as she goes over TDD techniques for Python projects using the pytest testing framework and a Docker container.
Jasmine begins by providing a basic overview of both TDD and pytest as she shows how to write a basic test. She then delves into how to use pytest features to automatically run unit tests, as well as how to best organize your pytest projects. Then, see how to hop into an existing project and use pytest tests to figure out the core behavior of the source code, determine which source code functions still need to be tested, and add in more tests.

About the Author
Jasmine Omeke is a software developer and former Fulbright scholar.
Jasmine currently leverages her engineering expertise as a software engineer 2 at Braintree, a division of PayPal. In her role, she focuses on big data platform infrastructure and uses test-driven Java and Python. She has also contributed to open-source projects such as gRPC, Apache Airflow, and pytest.
After graduating cum laude from Harvard with a BA in social studies with a focus on urban planning, Jasmine learned how to code on the job and continued honing her programming and data science skills by earning an MS in computer science. She was a recipient of the 2015–2016 Fulbright U.S. Student Program grant. In her free time, she likes biking and creating digital maps.
Product Details
- Full Video Tutorials
- Video File Format: MP4
- Skill Level: Advanced
- Video Duration: 1h 29m
- Instructor: Jasmine Omeke