Post originally published on http://krzysztofzuraw.com/. Republished with author’s permission. Introduction In this post I will look into the essential part of testing — mocks. First of all, what I want to accomplish here is to give you basic examples of how to mock data using two tools — mock and pytest monkeypatch. Why bother mocking? […]