Author xtreak
Recipients Adnan Umer, cjw296, mariocj89, remi.lapeyre, xtreak
Date 2019-02-14.18:04:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Thanks for the report. I think this is design by choice that self is not passed to the side_effect directly set on the mock [0]. Changing this would break existing tests like [1] . You can use the approach by @remi.lapeyre which directly replaces the function on the target inside the context manager at [2] passing self to the side_effect callable.

Date User Action Args
2019-02-14 18:04:09xtreaksetrecipients: + xtreak, cjw296, mariocj89, remi.lapeyre, Adnan Umer
2019-02-14 18:04:09xtreaksetmessageid: <>
2019-02-14 18:04:09xtreaklinkissue35577 messages
2019-02-14 18:04:09xtreakcreate