Friday, May 21, 2021

Test and Code: 154: Don't Mock your Database - Jeff Triplett

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.

Special Guest: Jeff Triplett.

Sponsored By:

Support Test & Code : Python Testing

Links:

<p>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&#39;t mock it.</p> <p>In this episode, we talk with Jeff about testing web applications, specifically Django apps, and of course talk about the downsides of database mocking.</p><p>Special Guest: Jeff Triplett.</p><p>Sponsored By:</p><ul><li><a href="https://ift.tt/3eBYfEe" rel="nofollow">Datadog</a>: <a href="https://ift.tt/3eBYfEe" rel="nofollow">Modern end-to-end monitoring & security. See inside any stack, any app, at any scale, anywhere. Get started with a free trial at testandcode.com/datadog and Datadog will send you a free t-shirt. </a></li><li><a href="https://configcat.com/" rel="nofollow">ConfigCat.com</a>: <a href="https://configcat.com/" rel="nofollow">Release features faster with less risk with ConfigCat. You can try it out with the forever free plan or get 25% off with code testandcode2021</a> Promo Code: testandcode2021</li></ul><p><a href="https://ift.tt/2tzXV5e" rel="payment">Support Test & Code : Python Testing</a></p><p>Links:</p><ul><li><a href="https://twitter.com/webology/status/1363898407388119049?s=20" title=""🤔 In ~12 years, I have never seen a case where mocking a database was a good idea. ..." " rel="nofollow">"🤔 In ~12 years, I have never seen a case where mocking a database was a good idea. ..." </a> </li><li><a href="https://ift.tt/35g9gpm" title="Django News" rel="nofollow">Django News</a></li><li><a href="https://ift.tt/2t74HPF" title="Moto" rel="nofollow">Moto</a></li><li><a href="https://ift.tt/3cunt74" title="Test & Code 103: Django - Lacey Williams Henschel" rel="nofollow">Test & Code 103: Django - Lacey Williams Henschel</a></li><li><a href="https://ift.tt/31jZ0we" title="Model Bakery: Smart fixtures for better tests " rel="nofollow">Model Bakery: Smart fixtures for better tests </a></li><li><a href="https://ift.tt/2Lrdvbx" title="Faker" rel="nofollow">Faker</a></li></ul>

from Planet Python
via read more

No comments:

Post a Comment

TestDriven.io: Working with Static and Media Files in Django

This article looks at how to work with static and media files in a Django project, locally and in production. from Planet Python via read...