[issue38161] AsyncMock add `.awaited` like `.called`

Lisa Roach report at bugs.python.org
Fri Sep 27 19:26:22 EDT 2019


Lisa Roach <lisaroach14 at gmail.com> added the comment:

Looking at this more, I think I want to just remove the current `awaited` object. The PR in asyntest makes it seem pretty cool: https://github.com/Martiusweb/asynctest/issues/64

But I have issue with the naming (await_event is probably better for us), and I'm not sure how to document it well and ensure it's well tested.

With the 3.8 release coming up fast I'd rather remove it for now and then add it back in after some more thought has been given to the feature, instead of getting stuck with a not fully thought out attribute we have to worry about deprecating.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38161>
_______________________________________


More information about the Python-bugs-list mailing list