MCPcopy Index your code
hub / github.com/RustPython/RustPython / reset_mock

Method reset_mock

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

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

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

Source from the content-addressed store, hash-verified

2464 raise AssertionError(msg)
2465
2466 def reset_mock(self, /, *args, **kwargs):
2467 """
2468 See :func:`.Mock.reset_mock()`
2469 """
2470 super().reset_mock(*args, **kwargs)
2471 self.await_count = 0
2472 self.await_args = None
2473 self.await_args_list = _CallList()
2474
2475
2476class 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