The unittest.mock module is Python's built-in mocking and patching module. Used to replace objects with fake implementations during testing. Replacing objects with fake implementations allows code to be tested independently of its dependencies. Allowing tests to be fast, predictable, and more reliable.
Expand your Python skills by learning to use the built-in unittest.mock module.
Learning Objectives
Explore how to replace Python objects during testing.
At the end of this lab you'll be familiar with:
Intended Audience
Prerequisites
Updates
April 19th, 2023 - Updated theia to enable autosave