Dance with Shadows - Stubs, Patch and Mock

Dance with Shadows - Stubs, Patch and Mock

EuroPython Conference via YouTube Direct link

Mocks properties: return value, side effect and specs. Using mocks as spy functions or wrappers. Asserting on callings.

5 of 6

5 of 6

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. 1 I present the key factors to use fake objects, and present some dangers.
  2. 2 Discuss some wanted characteristics in this kind of components.
  3. 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. 4 Inverse dependency as an possible alternative to patch
  5. 5 Mocks properties: return value, side effect and specs. Using mocks as spy functions or wrappers. Asserting on callings.
  6. 6 Using special libraries for mocking. Presenting pyvcr and moto."

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.