]> granicus.if.org Git - python/commit
docs: Add references to AsyncMock in unittest.mock.patch (#13681)
authorMario Corchero <mcorcherojim@bloomberg.net>
Mon, 9 Sep 2019 14:18:06 +0000 (15:18 +0100)
committerLisa Roach <lisaroach14@gmail.com>
Mon, 9 Sep 2019 14:18:06 +0000 (15:18 +0100)
commitf5e7f39d2916ed150e80381faed125f405a11e11
treed0304a363837b624ac4c141075015ebec04fa7ae
parentfa3a38d81faaf96d17b5a7f0248b9923e3a648cc
docs: Add references to AsyncMock in unittest.mock.patch (#13681)

Update the docs as patch can now return an AsyncMock if the patched
object is an async function.
Doc/library/unittest.mock.rst
Lib/unittest/mock.py