Understanding Unittest.Mock

Restricted

Your browser needs to be JavaScript capable to view this video

Try reloading this page, or reviewing your browser settings

This segment shows one of the most common mistakes when using mocks, the lack of control on the child mock feature. By using spec and seal, a new feature in Python3.7 we ensure our mocks work as we expect them to do.

Keywords

  • mock
  • validation
  • seal
  • spec
  • autospec

About this video

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