How not to make a mockery of it


Follow to receive video recommendations   a   A

Make the most of unittest.mock when testing The Python standard library comes with a great tool for helping you write isolated unit tests: unittest.mock. But, as evident from Stack Overflow questions on the subject, many people struggle to understand how to use the library correctly. This talk will help you understand how to use unitest.mock effectively, with the help of a few problems inspired by those Stack Overflow posts. This talk is aimed at people that already know how to write unittests, but want to know how to get the most out of unittest.mock.

Editors Note:

If you like this website, please upvote my Awesome Python pull request.