Test & Code

132: mocking in Python - Anna-Lena Popkes


Listen Later

Using mock objects during testing in Python.

Anna-Lena joins the podcast to teach us about mocks and using unittest.mock objects during testing. 

We discuss:

  • the different styles of using mocks
  • pros and cons of mocks
  • dependency injection
  • adapter pattern
  • mock hell
  • magical universe
  • and much more

Special Guest: Anna-Lena Popkes.


Links:

  • Personal webpage of Anna-Lena Popkes
  • Magical Universe — Awesome Python features explained using the world of magic
  • Test & Code 102: Cosmic Python, TDD, testing and external dependencies — The episode where Harry Percival discusses mocking.
  • Talk: Harry Percival - Stop Using Mocks (for a while) - YouTube — Talk: Harry Percival - Stop Using Mocks (for a while)
  • unittest.mock 
  • Autospeccing
  • Mock Hell Talk (45 min version) Edwin Jung - PyCon 2019 
  • Mock Hell Talk (30 min version) - Edwin Jung - PyConDE 
  • PyCon Estonia
  • KI macht Schule!
  • Talk Python #186 : 100 Days of Python in a Magical Universe



...more
View all episodesView all episodes
Download on the App Store

Test & CodeBy Brian Okken

  • 4.7
  • 4.7
  • 4.7
  • 4.7
  • 4.7

4.7

70 ratings


More shows like Test & Code

View all
Radiolab by WNYC Studios

Radiolab

44,010 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

623 Listeners

Heavy Networking by Packet Pushers

Heavy Networking

328 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

587 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

214 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,001 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners

Unexplainable by Vox

Unexplainable

2,285 Listeners

Network Automation Nerds by Packet Pushers

Network Automation Nerds

3 Listeners