[New-bugs-announce] [issue38161] AsyncMock add `.awaited` like `.called`

Lisa Roach report at bugs.python.org
Fri Sep 13 11:49:28 EDT 2019


New submission from Lisa Roach <lisaroach14 at gmail.com>:

Currently Mock has a `.called` attribute, we could add an equivalent `.awaited` that returns True or False if the object has been awaited on.

----------
messages: 352345
nosy: lisroach
priority: normal
severity: normal
status: open
title: AsyncMock add `.awaited` like `.called`

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


More information about the New-bugs-announce mailing list