Author xtreak
Recipients docs@python, dougharris, eppeters, miss-islington, rhettinger, xtreak
Date 2021-03-05.01:15:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614906938.9.0.772209197109.issue43400@roundup.psfhosted.org>
In-reply-to
Content
Mock has a section on getting started that has several recipes but it's not under howto section. Perhaps this page could be updated if you want to make a PR : https://docs.python.org/3/library/unittest.mock-examples.html

There is also a section on where to patch : https://docs.python.org/3/library/unittest.mock.html#where-to-patch

I admit it also bites me few times and I have to do trial and error to get the right patch object.
History
Date User Action Args
2021-03-05 01:15:38xtreaksetrecipients: + xtreak, rhettinger, docs@python, miss-islington, eppeters, dougharris
2021-03-05 01:15:38xtreaksetmessageid: <1614906938.9.0.772209197109.issue43400@roundup.psfhosted.org>
2021-03-05 01:15:38xtreaklinkissue43400 messages
2021-03-05 01:15:38xtreakcreate