Video description
- See why testing doubles are needed
- Create testing doubles with unittest.mock while using the library
- Understand how patches works
Table of contents
- Introduction 00:01:01
- Creating and Using Mocks 00:04:30
- Testing Doubles 00:04:30
- Using Unittest.mock 00:08:29
- Creating Complex Mocks 00:06:25
- Validating Calls 00:06:56
- Cresting Spies 00:04:06
- Restricted 00:10:07
- Patching Internal Dependencies 00:07:07
- Patch 00:07:07
- Understanding Patch 00:09:43
- Patching Objects and Dicts 00:10:36
- Other Ways to Patch 00:06:49
- Mock and Pytest 00:07:02
Product information
- Title: Understanding Unittest.Mock
- Author(s):
- Release date: January 2019
- Publisher(s): Apress
- ISBN: 9781484244135
You might also like
book
Essential SQLAlchemy, 2nd Edition
Dive into SQLAlchemy, the popular, open-source code library that helps Python programmers work with relational databases …
audiobook
Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
Data is at the center of many challenges in system design today. Difficult issues need to …
book
Spark: The Definitive Guide
Learn how to use, deploy, and maintain Apache Spark with this comprehensive guide, written by the …
video
Domain-Driven Design Distilled
Domain-Driven Design (DDD) software modeling delivers powerful results in practice, not just in theory, which is …