Overcoming Testing Obstacles With Python's Mock Object Library

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

Explore listener stats, chart rankings, contacts and more on the The Real Python Podcast podcast page.