MCPcopy Create free account
hub / github.com/pytest-dev/pytest / getcalls

Method getcalls

src/_pytest/pytester.py:274–278  ·  view source on GitHub ↗

Get all recorded calls to hooks with the given names (or name).

(self, names: Union[str, Iterable[str]])

Source from the content-addressed store, hash-verified

272 self._undo_wrapping()
273
274 def getcalls(self, names: Union[str, Iterable[str]]) -> List[RecordedHookCall]:
275 """Get all recorded calls to hooks with the given names (or name)."""
276 if isinstance(names, str):
277 names = names.split()
278 return [call for call in self.calls if call._name in names]
279
280 def assert_contains(self, entries: Sequence[Tuple[str, str]]) -> None:
281 __tracebackhide__ = True

Calls

no outgoing calls

Tested by

no test coverage detected