Back to Browse

Lisa Roach - Demystifying the Patch Function - PyCon 2018

48.7K views
May 12, 2018
37:07

Speaker: Lisa Roach One of the most challenging and important thing fors for Python developers learn is the unittest mock library. The patch function is in particular confusing- there are many different ways to use it. Should I use a context manager? Decorator? When would I use it manually? Improperly used patch functions can make unit tests useless, all the while making them look as if they are correctly testing code.Let’s learn how to wield patch with confidence! Slides can be found at: https://speakerdeck.com/pycon2018 and https://github.com/PyCon/2018-slides

Download

1 formats

Video Formats

360pmp443.6 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Lisa Roach - Demystifying the Patch Function - PyCon 2018 | NatokHD