Tags
Language
Tags
December 2024
Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31 1 2 3 4

Understanding Unittest.Mock

Posted By: naag
Understanding Unittest.Mock

Understanding Unittest.Mock
MP4 | Video: AVC 1280x720 | Audio: AAC 44KHz 2ch | Duration: 1.5 Hours | 0.97 GB
Genre: eLearning | Language: English

Review the main features of the unittest.mock module with a big dive into how to use it effectively and avoid most of the mistakes beginner and intermediate users fall into when using it. The video includes why mocks are needed, how to use them, and how they work; how to patch code to isolate it from internal dependencies; and different kinds of mocks that fit different scenarios.

You will see all this and the common pitfalls with a series of code examples, stepping through the not so well know features of unittest.mock, some of them added only in Python 3.7, that make this library even more powerful.

What You Will Learn
See why testing doubles are needed
Create testing doubles with unittest.mock while using the library
Understand how patches works

Understanding Unittest.Mock