Monday, September 28, 2020

Test and Code: 132: mocking in Python - Anna-Lena Popkes

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.

Sponsored By:

Support Test & Code : Python Testing for Software Engineering

Links:

<p>Using mock objects during testing in Python.</p> <p>Anna-Lena joins the podcast to teach us about mocks and using unittest.mock objects during testing. </p> <p>We discuss:</p> <ul> <li>the different styles of using mocks</li> <li>pros and cons of mocks</li> <li>dependency injection</li> <li>adapter pattern</li> <li>mock hell</li> <li>magical universe</li> <li>and much more</li> </ul><p>Special Guest: Anna-Lena Popkes.</p><p>Sponsored By:</p><ul><li><a href="https://ift.tt/2Qj9RS9" rel="nofollow">Talk Python Training</a>: <a href="https://ift.tt/2Qj9RS9" rel="nofollow">Online video courses for Python developers</a></li><li><a href="https://ift.tt/2JDHRTz" rel="nofollow">PyCharm Professional</a>: <a href="https://ift.tt/2JDHRTz" rel="nofollow">Try PyCharm Pro for 4 months and learn how PyCharm will save you time.</a> Promo Code: TESTANDCODE20</li><li><a href="https://ift.tt/1a4OF3i" rel="nofollow">HoneyBadger</a>: <a href="https://ift.tt/1a4OF3i" rel="nofollow">When bad things happen, it's nice to know that Honeybadger has your back. 30% off for first 6 months when you mention Test & Code Podcast when signing up.</a></li></ul><p><a href="https://ift.tt/2tzXV5e" rel="payment">Support Test & Code : Python Testing for Software Engineering</a></p><p>Links:</p><ul><li><a href="http://alpopkes.com/" title="Personal webpage of Anna-Lena Popkes" rel="nofollow">Personal webpage of Anna-Lena Popkes</a></li><li><a href="https://ift.tt/2E59bt8" title="Magical Universe" rel="nofollow">Magical Universe</a> &mdash; Awesome Python features explained using the world of magic</li><li><a href="https://ift.tt/3aaFlC0" title="Test & Code 102: Cosmic Python, TDD, testing and external dependencies " rel="nofollow">Test & Code 102: Cosmic Python, TDD, testing and external dependencies </a> &mdash; The episode where Harry Percival discusses mocking.</li><li><a href="https://www.youtube.com/watch?v=rk-f3B-eMkI" title="Talk: Harry Percival - Stop Using Mocks (for a while) - YouTube" rel="nofollow">Talk: Harry Percival - Stop Using Mocks (for a while) - YouTube</a> &mdash; Talk: Harry Percival - Stop Using Mocks (for a while)</li><li><a href="https://ift.tt/1gYzMss" title="unittest.mock " rel="nofollow">unittest.mock </a></li><li><a href="https://ift.tt/1Pa5ClH" title="Autospeccing" rel="nofollow">Autospeccing</a></li><li><a href="https://www.youtube.com/watch?v=Ldlz4V-UCFw" title="Mock Hell Talk (45 min version) Edwin Jung - PyCon 2019 " rel="nofollow">Mock Hell Talk (45 min version) Edwin Jung - PyCon 2019 </a></li><li><a href="https://www.youtube.com/watch?v=CdKaZ7boiZ4" title="Mock Hell Talk (30 min version) - Edwin Jung - PyConDE " rel="nofollow">Mock Hell Talk (30 min version) - Edwin Jung - PyConDE </a></li><li><a href="https://pycon.ee/" title="PyCon Estonia" rel="nofollow">PyCon Estonia</a></li><li><a href="https://ift.tt/345x5Sn" title="KI macht Schule!" rel="nofollow">KI macht Schule!</a></li><li><a href="https://ift.tt/2DqUsKu" title="Talk Python #186 : 100 Days of Python in a Magical Universe" rel="nofollow">Talk Python #186 : 100 Days of Python in a Magical Universe</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...