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

Function reset_mock

Lib/unittest/mock.py:250–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 def assert_any_call(*args, **kwargs):
249 return mock.assert_any_call(*args, **kwargs)
250 def reset_mock():
251 funcopy.method_calls = _CallList()
252 funcopy.mock_calls = _CallList()
253 mock.reset_mock()
254 ret = funcopy.return_value
255 if _is_instance_mock(ret) and not ret is mock:
256 ret.reset_mock()
257
258 funcopy.called = False
259 funcopy.call_count = 0

Callers

nothing calls this directly

Calls 3

_CallListClass · 0.85
_is_instance_mockFunction · 0.85
reset_mockMethod · 0.45

Tested by

no test coverage detected