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.
Special Guest: Michael Foord.
Sponsored By:
Support Test & Code : Python Testing
Links:
<p>A discussion about mocking in Python with the original contributor of unittest.mock, Michael Foord.</p>
<p>Of course we discuss mocking and unittest.mock. </p>
<p>We also discuss:</p>
<ul>
<li>testing philosophy</li>
<li>unit testing and what a unit is</li>
<li>TDD</li>
<li>where Michael's towel is, and what color</li>
</ul>
<p>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.</p><p>Special Guest: Michael Foord.</p><p>Sponsored By:</p><ul><li><a href="https://testandcode.com/pycharm" rel="nofollow">PyCharm Professional</a>: <a href="https://testandcode.com/pycharm" rel="nofollow">Try PyCharm Pro for 4 months and learn how PyCharm will save you time.</a> Promo Code: TESTANDCODE21</li></ul><p><a href="https://www.patreon.com/testpodcast" rel="payment">Support Test & Code : Python Testing</a></p><p>Links:</p><ul><li><a href="https://docs.python.org/3/library/unittest.mock.html" title="unittest.mock - Python docs" rel="nofollow">unittest.mock - Python docs</a></li><li><a href="https://martinfowler.com/articles/mocksArentStubs.html" title="Mocks Aren't Stubs - Martin Fowler" rel="nofollow">Mocks Aren't Stubs - Martin Fowler</a></li><li><a href="https://pypi.org/project/pytest-mock/" title="pytest-mock" rel="nofollow">pytest-mock</a></li><li><a href="https://docs.python.org/3/library/unittest.mock.html#unittest.mock.patch" title="mock.patch" rel="nofollow">mock.patch</a></li><li><a href="https://docs.python.org/3/library/unittest.mock.html#auto-speccing" title="Autospeccing" rel="nofollow">Autospeccing</a></li><li><a href="http://wiki.c2.com/?ArrangeActAssert" title="Arrange Act Assert" rel="nofollow">Arrange Act Assert</a></li><li><a href="http://lists.idyll.org/listinfo/testing-in-python" title="testing-in-python mailing list" rel="nofollow">testing-in-python mailing list</a></li><li><a href="https://martinfowler.com/articles/mocksArentStubs.html#ClassicalAndMockistTesting" title="Classical and Mockist Testing" rel="nofollow">Classical and Mockist Testing</a> — Classical and Mockist Testing
</li><li><a href="https://pythontesting.net/agile/test-first-programming/" title="Test First Programming / Test First Development" rel="nofollow">Test First Programming / Test First Development</a></li><li><a href="https://testandcode.com/102" title="episode 102: Cosmic Python, TDD, testing and external dependencies - Harry Percival" rel="nofollow">episode 102: Cosmic Python, TDD, testing and external dependencies - Harry Percival</a></li><li><a href="https://testandcode.com/132" title="episode 132: mocking in Python - Anna-Lena Popkes" rel="nofollow">episode 132: mocking in Python - Anna-Lena Popkes</a></li><li><a href="https://pragprog.com/titles/bopytest/python-testing-with-pytest/" title="pytest" rel="nofollow">pytest</a></li><li><a href="https://docs.python.org/3/library/unittest.html" title="unittest - Python docs" rel="nofollow">unittest - Python docs</a></li><li><a href="https://docs.pytest.org/en/stable/assert.html" title="pytest assert usage" rel="nofollow">pytest assert usage</a></li><li><a href="https://opensource.com/article/17/5/30-best-practices-software-development-and-testing" title="30 best practices for software development and testing | Opensource.com" rel="nofollow">30 best practices for software development and testing | Opensource.com</a></li></ul>