Understanding Unittest.Mock

Creating Complex Mocks

Your browser needs to be JavaScript capable to view this video

Try reloading this page, or reviewing your browser settings

This segment describes how the automatic creation of child mocks on attribute access work and why it is useful, especially for tests where we want a dummy.

Keywords

  • child
  • mock
  • automatic
  • attribute
  • dummy

About this video

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