Главная
Study mode:
on
1
Intro
2
Why do we need stubs
3
How to create stubs
4
Testing double
5
Creating mocks
6
Magic methods
7
Mock Interactions
8
Spec
9
Mock
10
Seal
11
spies
12
wrap scene
13
take away
14
deepfried Mars bar
15
Sentinels
16
Patch
17
Using Mocks
18
Naming Mocks
19
Quiz
Description:
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.

Mocks, Dummies, Stubs & Spies

EuroPython Conference
Add to list