Completed
Mocks properties: return value, side effect and specs. Using mocks as spy functions or wrappers. Asserting on callings.
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
Dance with Shadows - Stubs, Patch and Mock
Automatically move to the next video in the Classroom when playback concludes
- 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."