Managing Mocks
Offered By: EuroPython Conference via YouTube
Course Description
Overview
Explore effective mocking techniques for Python unit testing in this conference talk from EuroPython 2016. Gain insights into the unittest.mock library, learn how to create and manipulate Mock objects, set up return values and side effects, and inspect mocks to examine test behavior. Discover common mocking scenarios, including date/time, filesystem, and read-only properties. Understand when mocking is most beneficial and when to consider alternative approaches. While focusing primarily on unittest.mock, briefly examine other useful mocking libraries to enhance your testing toolkit.
Syllabus
Introduction
What is a Mock
Comparison Objects
Patch
Object
Taught by
EuroPython Conference
Related Courses
Introduction to Unit Testing in Jest - The FundamentalsCoursera Project Network via Coursera Unit Testing for Data Science in Python
DataCamp WebServices/Rest API Testing with SoapUI +Real time Projects
Udemy Testing Fundamentals in iOS
Pluralsight F#: Automated Testing for Developers
LinkedIn Learning