Learn AI, Data Science & Business — Earn Certificates That Get You Hired
Master Agentic AI, GANs, Fine-Tuning & LLM Apps
Overview
Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
Learn to write high-quality unit tests for Python code using Pytest, the de-facto testing tool standard, and mock, the built-in library for creating mock objects. This comprehensive 2-hour and 13-minute tutorial from PyCon US covers best practices in unit testing, demonstrating how to effectively use Pytest and mock to ensure code reliability and maintainability. Explore practical examples and techniques to improve your testing skills, and gain access to supplementary materials through the provided GitHub repository containing slides and additional resources.
Syllabus
TUTORIAL / Moshe Z / Python Unit Testing with Pytest and Mock
Taught by
PyCon US