The magical world of Python's mock library
Farid Rener (~proteusvacuum) |
Python's mock library can look really intimidating to beginners. But once you have wrapped your head around its power, you will be mocking, stubbing, and spying on your objects in your unit tests like a champ.
This workshop will cover the basic usages of Python's mock library while testing your code, and outline the places you might want to use it, and the places where you most certainly don't.
- Know how to write and run unit tests
- No prior knowledge of mocks required, but come with some curiosity!
- Bonus points if you read the docs before arriving
Farid works as an engineer at Dimagi, a social enterprise that builds tools for frontline health workers.