Test & Code
The Python Test Podcast
We found 2 episodes of Test & Code with the tag “mocking”.
154: Don't Mock your Database - Jeff Triplett
May 21st, 2021 | 31 mins 39 secs
databases, django, mocking, pytest, python, software testing
You need tests for your web app. And it has a database. What do you do with the database during testing? Should you use the real thing? or mock it? Jeff Triplett says don't mock it.
In this episode, we talk with Jeff about testing web applications, specifically Django apps, and of course talk about the downsides of database mocking.
145: For Those About to Mock - Michael Foord
February 18th, 2021 | 48 mins 44 secs
mock, mocking, python, tdd, unittest
A discussion about mocking in Python with the original contributor of unittest.mock, Michael Foord.