Главная
Study mode:
on
1
I present the key factors to use fake objects, and present some dangers.
2
Discuss some wanted characteristics in this kind of components.
3
Patching: how to do that and some common mistakes. After that I present patch scopes and some disadvantage in the use of this technique.
4
Inverse dependency as an possible alternative to patch
5
Mocks properties: return value, side effect and specs. Using mocks as spy functions or wrappers. Asserting on callings.
6
Using special libraries for mocking. Presenting pyvcr and moto."
Description:
Explore the world of fake objects in this 32-minute conference talk from EuroPython 2022. Dive into key factors for using fake objects, their characteristics, and potential dangers. Learn patching techniques, common mistakes, and scope considerations. Discover inverse dependency as an alternative to patching. Master mock properties, including return values, side effects, and specs, while understanding their use as spy functions and wrappers. Gain insights into asserting on callings and explore specialized mocking libraries like pyvcr and moto for web development.

Dance with Shadows - Stubs, Patch and Mock

EuroPython Conference
Add to list