]> granicus.if.org Git - python/commit
docs: Add references to AsyncMock in unittest.mock.patch (GH-13681)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 10 Sep 2019 13:15:19 +0000 (06:15 -0700)
committerGitHub <noreply@github.com>
Tue, 10 Sep 2019 13:15:19 +0000 (06:15 -0700)
commiteaa1b09412cc82ba830fd731016278af26b9099b
tree8336dfe4c0c9cff53c2a15b5e7d76c33bc4bf7c4
parenteb1bc48c74f4f8af88b5276729f9652201e46324
docs: Add references to AsyncMock in unittest.mock.patch (GH-13681)

Update the docs as patch can now return an AsyncMock if the patched
object is an async function.
(cherry picked from commit f5e7f39d2916ed150e80381faed125f405a11e11)

Co-authored-by: Mario Corchero <mcorcherojim@bloomberg.net>
Doc/library/unittest.mock.rst
Lib/unittest/mock.py