MCPcopy Index your code
hub / github.com/python/cpython / reset_mock

Method reset_mock

Lib/unittest/mock.py:2473–2480  ·  view source on GitHub ↗

See :func:`.Mock.reset_mock()`

(self, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

2471 raise AssertionError(msg)
2472
2473 def reset_mock(self, /, *args, **kwargs):
2474 """
2475 See :func:`.Mock.reset_mock()`
2476 """
2477 super().reset_mock(*args, **kwargs)
2478 self.await_count = 0
2479 self.await_args = None
2480 self.await_args_list = _CallList()
2481
2482
2483class AsyncMock(AsyncMockMixin, AsyncMagicMixin, Mock):

Callers

nothing calls this directly

Calls 3

superClass · 0.85
_CallListClass · 0.85
reset_mockMethod · 0.45

Tested by

no test coverage detected