Get all recorded calls to hooks with the given names (or name).
(self, names: Union[str, Iterable[str]])
| 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 |
no outgoing calls
no test coverage detected