Test & Code

145: For Those About to Mock - Michael Foord


Listen Later

A discussion about mocking in Python with the original contributor of unittest.mock, Michael Foord.

Of course we discuss mocking and unittest.mock. 

We also discuss:

  • testing philosophy
  • unit testing and what a unit is
  • TDD
  • where Michael's towel is, and what color

Micheal was instrumental in the building of testing tools for Python, and continues to be a pragmatic source of honest testing philosopy in a field that has a lot of contradictory information.


Links:

  • unittest.mock - Python docs
  • Mocks Aren't Stubs - Martin Fowler
  • pytest-mock
  • mock.patch
  • Autospeccing
  • Arrange Act Assert
  • testing-in-python mailing list
  • Classical and Mockist Testing — Classical and Mockist Testing 
  • Test First Programming / Test First Development
  • episode 102: Cosmic Python, TDD, testing and external dependencies - Harry Percival
  • episode 132: mocking in Python - Anna-Lena Popkes
  • pytest
  • unittest - Python docs
  • pytest assert usage
  • 30 best practices for software development and testing | Opensource.com



...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