Next up
Creating Complex Mocks
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
We recreate the same testing double that we created manually with the library, we show how easier it is to do it and how few code it is needed now. We see another example where we also need to specify magic methods and show how we can use MagicMock for it.
Keywords
- recreate
- testing
- double
- library
- code
- example
- specify
- magicmock
About this video
- Author(s)
- Mario Corchero
- First online
- 25 December 2018
- DOI
- https://doi.org/10.1007/978-1-4842-4413-5_2
- Online ISBN
- 978-1-4842-4413-5
- Publisher
- Apress
- Copyright information
- © Mario Corchero 2019