Next up
Understanding How Patch Works
Continuing in
Understanding Unittest.Mock
This is a preview of subscription content
Your browser needs to be JavaScript capable to view this video
Try reloading this page, or reviewing your browser settings
An overview of how our Python code can have internal dependencies that make it hard to test and how we can use the patch function to replace them.
Keywords
- Patch
- existing objects
- open function
- dynamic value
- decorator
- pitfalls
About this video
- Author(s)
- Mario Corchero
- First online
- 25 December 2018
- DOI
- https://doi.org/10.1007/978-1-4842-4413-5_7
- Online ISBN
- 978-1-4842-4413-5
- Publisher
- Apress
- Copyright information
- © Mario Corchero 2019