Using mocks in Python
Apr01

Using mocks in Python

Using mocks in Python Moshe Zadka Sat, 04/01/2023 – 03:00 April 1st is all about fake stories and pretending. This makes it the perfect day to talk about mocking. Sometimes, using real objects is hard, ill-advised, or complicated. For example, a requests.Session connects to real websites. Using it in your unittests invites a…lot…of problems. Basic mocking in Python “Mocks” are a unittest concept. They produce objects...

Read More