YoVDO

Dance with Shadows - Stubs, Patch and Mock

Offered By: EuroPython Conference via YouTube

Tags

EuroPython Courses Web Development Courses Software Testing Courses Quality Assurance Courses Mocking Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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.

Syllabus

I present the key factors to use fake objects, and present some dangers.
Discuss some wanted characteristics in this kind of components.
Patching: how to do that and some common mistakes. After that I present patch scopes and some disadvantage in the use of this technique.
Inverse dependency as an possible alternative to patch
Mocks properties: return value, side effect and specs. Using mocks as spy functions or wrappers. Asserting on callings.
Using special libraries for mocking. Presenting pyvcr and moto."


Taught by

EuroPython Conference

Related Courses

Web Engineering III: Quality Assurance
Technische Hochschule Mittelhessen via iversity
Project Management for Designers
Emily Carr University of Art + Design via Kadenze
Develop Project Management Skills
OpenLearning
Study UK: A Guide for Education Agents
FutureLearn
Basics of Design Testing
SAP Learning