MCPcopy
hub / github.com/pytest-dev/pytest / popcall

Method popcall

src/_pytest/pytester.py:307–315  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

305 fail(f"could not find {name!r} check {check!r}")
306
307 def popcall(self, name: str) -> RecordedHookCall:
308 __tracebackhide__ = True
309 for i, call in enumerate(self.calls):
310 if call._name == name:
311 del self.calls[i]
312 return call
313 lines = [f"could not find call {name!r}, in:"]
314 lines.extend([f" {x}" for x in self.calls])
315 fail("\n".join(lines))
316
317 def getcall(self, name: str) -> RecordedHookCall:
318 values = self.getcalls(name)

Callers 1

test_hookrecorder_basicFunction · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected