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

Method call_list

Lib/unittest/mock.py:2725–2735  ·  view source on GitHub ↗

For a call object that represents multiple calls, `call_list` returns a list of all the intermediate calls as well as the final call.

(self)

Source from the content-addressed store, hash-verified

2723
2724
2725 def call_list(self):
2726 """For a call object that represents multiple calls, `call_list`
2727 returns a list of all the intermediate calls as well as the
2728 final call."""
2729 vals = []
2730 thing = self
2731 while thing is not None:
2732 if thing._mock_from_kall:
2733 vals.append(thing)
2734 thing = thing._mock_parent
2735 return _CallList(reversed(vals))
2736
2737
2738call = _Call(from_kall=False)

Callers 6

test_mock_callsMethod · 0.80
test_assert_has_callsMethod · 0.80
test_extended_callMethod · 0.80
test_call_listMethod · 0.80

Calls 3

_CallListClass · 0.85
reversedFunction · 0.85
appendMethod · 0.45

Tested by 6

test_mock_callsMethod · 0.64
test_assert_has_callsMethod · 0.64
test_extended_callMethod · 0.64
test_call_listMethod · 0.64