YoVDO

Mocks, Dummies, Stubs & Spies

Offered By: EuroPython Conference via YouTube

Tags

EuroPython Courses Python Courses Unit Testing Courses Mocking Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the world of testing doubles in Python through this 25-minute EuroPython Conference talk. Dive deep into mocks, fakes, dummies, stubs, and spies, understanding their differences and appropriate use cases. Learn how to effectively isolate dependencies in your tests using unittest.mock, including new features in Python 3.7. Gain insights from the writings of Gerard Meszaros and Martin Fowler, and discover advanced techniques to shape mock objects for different functional behaviors. Suitable for both beginners and intermediate developers, this talk covers the importance of doubles, main qualities of a double, an overview of unittest.mock, and detailed explanations of various testing doubles. Conclude with practical takeaways and a Q&A session to enhance your Python testing skills.

Syllabus

Intro
Why do we need stubs
How to create stubs
Testing double
Creating mocks
Magic methods
Mock Interactions
Spec
Mock
Seal
spies
wrap scene
take away
deepfried Mars bar
Sentinels
Patch
Using Mocks
Naming Mocks
Quiz


Taught by

EuroPython Conference

Related Courses

Ruby on Rails: An Introduction
Johns Hopkins University via Coursera
Internet of Things Capstone: Build a Mobile Surveillance System
University of California, San Diego via Coursera
Engineering Maintainable Android Apps
Vanderbilt University via Coursera
Orientação a Objetos com Java
Instituto Tecnológico de Aeronáutica via Coursera
TDD – Desenvolvimento de Software Guiado por Testes
Instituto Tecnológico de Aeronáutica via Coursera