Author yselivanov
Recipients Petter S, asvetlov, pdxjohnny, r.david.murray, yselivanov, zach.ware
Date 2018-03-06.19:38:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1520365088.66.0.467229070634.issue32972@psf.upfronthosting.co.za>
In-reply-to
Content
> Doesn't that break when, for example, test methods are decorated with unittest.mock.patch?

No, it shouldn't break them if you wrap async methods carefully.

Here's a metaclass that I wrote recently doing just that: https://github.com/Azure/azure-functions-python-worker/blob/9ed3f8acd45a264927ce11af64f5b495f0404032/azure/worker/testutils.py#L44-L63
History
Date User Action Args
2018-03-06 19:38:08yselivanovsetrecipients: + yselivanov, r.david.murray, asvetlov, zach.ware, pdxjohnny, Petter S
2018-03-06 19:38:08yselivanovsetmessageid: <1520365088.66.0.467229070634.issue32972@psf.upfronthosting.co.za>
2018-03-06 19:38:08yselivanovlinkissue32972 messages
2018-03-06 19:38:08yselivanovcreate