Get all recorded calls to hooks with the given names (or name).
(self, names: str | Iterable[str])
| 277 | self._undo_wrapping() |
| 278 | |
| 279 | def getcalls(self, names: str | Iterable[str]) -> list[RecordedHookCall]: |
| 280 | """Get all recorded calls to hooks with the given names (or name).""" |
| 281 | if isinstance(names, str): |
| 282 | names = names.split() |
| 283 | return [call for call in self.calls if call._name in names] |
| 284 | |
| 285 | def assert_contains(self, entries: Sequence[tuple[str, str]]) -> None: |
| 286 | __tracebackhide__ = True |
no outgoing calls
no test coverage detected