[issue38136] Remove AsyncMock.assert_awaited_*

Karthikeyan Singaravelan report at bugs.python.org
Thu Sep 12 08:51:13 EDT 2019


Karthikeyan Singaravelan <tir.karthi at gmail.com> added the comment:

IMO it gives a good segregation between other mocks and AsyncMock that using assert_awaited_* makes it explicit and to cause less confusion over whether this is an awaitable or a synchronous mock. I would favor in keeping the API. I also found it to better in conceptualizing while writing tests for other PRs over having assert_call_* and assert_await_*.

----------
nosy: +asvetlov, mariocj89, yselivanov

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


More information about the Python-bugs-list mailing list