Главная
Study mode:
on
1
Introduction
2
The Heros Journey
3
Example Code
4
Sync to API
5
Mocks are Broken
6
Adapter Example
7
Build a Fake
8
Dependency Injection
9
Wrapping Up
10
Building a Fake API
Description:
Explore a thought-provoking talk from PyCon US that challenges the conventional use of mocks in testing. Discover why classic testing approaches often fall short in real-world scenarios and learn alternative strategies for designing more maintainable and effective tests. Delve into patterns like "Functional Core, Imperative Shell" and Dependency Injection, and understand how hand-rolled fakes can serve as a superior alternative to mocking and patching. Gain insights on improving code design, creating more robust test suites, and achieving a healthy test pyramid. Through practical examples and a journey from sync APIs to building fake APIs, acquire valuable techniques to enhance your testing practices and overall code quality.

Stop Using Mocks - for a While

PyCon US
Add to list
0:00 / 0:00