[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>

More information about the New-bugs-announce mailing list