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

Method __call__

Lib/unittest/mock.py:1171–1176  ·  view source on GitHub ↗
(self, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

1169
1170
1171 def __call__(self, /, *args, **kwargs):
1172 # can't use self in-case a function / method we are mocking uses self
1173 # in the signature
1174 self._mock_check_sig(*args, **kwargs)
1175 self._increment_mock_call(*args, **kwargs)
1176 return self._mock_call(*args, **kwargs)
1177
1178
1179 def _mock_call(self, /, *args, **kwargs):

Callers

nothing calls this directly

Calls 3

_mock_check_sigMethod · 0.95
_increment_mock_callMethod · 0.95
_mock_callMethod · 0.95

Tested by

no test coverage detected