3 ms·
From Python 3.8 there is AsyncMock : https://docs.python.org/3/library/unittest.mock.html#unittest.mock.AsyncMock https://docs.python.org/3/library/unittest.moc
by xtreak29 6y ago
From Python 3.8 there is AsyncMock : https://docs.python.org/3/library/unittest.mock.html#unittest.mock.AsyncMock https://docs.python.org/3/library/unittest.mock.html#unittes... . It's also available on mock backport from pypi for other versions. It's based on asynctest module. https://pypi.org/project/asynctest/ https://pypi.org/project/asynctest/