Use pytest for python3 mac

broken image
broken image

With this series of articles on mocking, I hope to bring some clarity on the topic. Every other article out there seems to mock things in a different way. One of the main reasons for this confusion - several ways to do the same thing. However, a lot of people are not familiar with how to properly mock classes, objects or functions for tests, because the available documentation online is either too short or unnecessarily complicated. Mocking resources in unit tests is just as important and common as writing unit tests.