Understanding Unittest.Mock

Patching Objects and Dicts

Your browser needs to be JavaScript capable to view this video

Try reloading this page, or reviewing your browser settings

This segment explains how can we use patch on dictionaries and existing objects.

Keywords

  • Python
  • test
  • function
  • replace
  • mock
  • internal
  • dependencies
  • dict
  • open
  • object

About this video

Author(s)
Mario Corchero
First online
25 December 2018
DOI
https://doi.org/10.1007/978-1-4842-4413-5_9
Online ISBN
978-1-4842-4413-5
Publisher
Apress
Copyright information
© Mario Corchero 2019