Test & Code

154: Don't Mock your Database - Jeff Triplett


Listen Later

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.


Links:

  • "🤔 In ~12 years, I have never seen a case where mocking a database was a good idea. ..." 
  • Django News
  • Moto
  • Test & Code 103: Django - Lacey Williams Henschel
  • Model Bakery: Smart fixtures for better tests 
  • Faker



...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,008 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

624 Listeners

Heavy Networking by Packet Pushers

Heavy Networking

328 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

588 Listeners

Python Bytes by Michael Kennedy and Brian Okken

Python Bytes

214 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,002 Listeners

The Real Python Podcast by Real Python

The Real Python Podcast

141 Listeners

Unexplainable by Vox

Unexplainable

2,283 Listeners

Network Automation Nerds by Packet Pushers

Network Automation Nerds

3 Listeners