Understanding Unittest.Mock

Mocks in pytest

Your browser needs to be JavaScript capable to view this video

Try reloading this page, or reviewing your browser settings

Examples of how to combine mocks in pytest and common pitfalls when patching and using fixtures in the same test scenario.

Keywords

  • mock
  • pytest
  • pitfalls
  • patching
  • fixtures
  • test

About this video

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