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

Method __repr__

src/_pytest/pytester.py:239–242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

237 self._name = name
238
239 def __repr__(self) -> str:
240 d = self.__dict__.copy()
241 del d["_name"]
242 return f"<RecordedHookCall {self._name!r}(**{d!r})>"
243
244 if TYPE_CHECKING:
245 # The class has undetermined attributes, this tells mypy about it.

Callers

nothing calls this directly

Calls 1

copyMethod · 0.80

Tested by

no test coverage detected