MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / reset_mock

Function reset_mock

tools/python-3.11.9-amd64/Lib/unittest/mock.py:225–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223 def assert_any_call(*args, **kwargs):
224 return mock.assert_any_call(*args, **kwargs)
225 def reset_mock():
226 funcopy.method_calls = _CallList()
227 funcopy.mock_calls = _CallList()
228 mock.reset_mock()
229 ret = funcopy.return_value
230 if _is_instance_mock(ret) and not ret is mock:
231 ret.reset_mock()
232
233 funcopy.called = False
234 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