Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.