π€ Demystifying the Patch Function
- π€ Lisa Roach
πΉ
Video:
https://youtu.be/ww1UsGZV8fQ
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!
This page was generated from this YAML file. Found a typo, want to add some data? Just edit it on GitHub.