Lines Matching refs:AsyncMock
16 'AsyncMock',
54 if _is_instance_mock(obj) and not isinstance(obj, AsyncMock):
1030 return AsyncMock(**kw)
1034 # Any asynchronous magic becomes an AsyncMock
1035 klass = AsyncMock
1039 # Any synchronous method on AsyncMock becomes a MagicMock
1042 klass = AsyncMock
1178 # executed separately from their call, also AsyncMock overrides this method
1467 Klass = AsyncMock
1482 Klass = AsyncMock
1706 `AsyncMock if the patched object is an async function or a
1725 that will be called to create the `new` object. By default `AsyncMock` is
1764 `AsyncMock` if the patched object is asynchronous, to `MagicMock`
2202 # AsyncMock).
2220 self.__dict__['__name__'] = 'AsyncMock'
2387 class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock):
2392 The :class:`AsyncMock` object will behave so the object is
2395 >>> mock = AsyncMock()
2414 returns a new :class:`AsyncMock` object.
2707 Klass = AsyncMock
2773 child_klass = AsyncMock