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

Method reset_mock

Lib/unittest/mock.py:3090–3096  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

3088 self.__dict__["_mock_wait_timeout"] = timeout
3089
3090 def reset_mock(self, /, *args, **kwargs):
3091 """
3092 See :func:`.Mock.reset_mock()`
3093 """
3094 super().reset_mock(*args, **kwargs)
3095 self.__dict__["_mock_event"] = threading.Event()
3096 self.__dict__["_mock_calls_events"] = []
3097
3098 def __get_event(self, expected_args, expected_kwargs):
3099 with self._mock_calls_events_lock:

Callers

nothing calls this directly

Calls 3

superClass · 0.85
EventMethod · 0.80
reset_mockMethod · 0.45

Tested by

no test coverage detected