
Overcoming Testing Obstacles With Python's Mock Object Library
From The Real Python Podcast by Real Python
February 27, 2026 · 40 min · Episode 286
About this episode
Christopher Trudeau discusses using Python's mock object library to improve testing reliability.
Do you have complex logic and unpredictable dependencies that make it hard to write reliable tests? How can you use Python's mock object library to improve your tests? Christopher Trudeau is back on the show this week with another batch of PyCoder's Weekly articles and projects.
People in this episode
Host: Real Python
Guest: Christopher Trudeau
Topics covered
- testing
- mock objects
- Python
- software development
- reliable tests
Keywords
- testing
- mock objects
- Python
- dependencies
- reliable tests
- software development
Mentioned in this episode
Organizations: Real Python
Products: Python's mock object library
More episodes of The Real Python Podcast
- EuroPython 2026: Celebrating 25 Years · June 12, 2026 · 40 min
- Reducing the Size of Python Docker Containers · June 5, 2026 · 39 min
- Improving Python Through PEPs and Protocols · May 29, 2026 · 1h 20m
- Managing Polars Schema Issues & Profiling GitHub Users · May 22, 2026 · 42 min
- Agentic Architecture: Why Files Aren't Always Enough · May 15, 2026 · 1h 24m
- Declarative Charts in Python & Discerning Iterators vs Iterables · May 8, 2026 · 56 min
Explore listener stats, chart rankings, contacts and more on the The Real Python Podcast podcast page.