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

Method handler

src/_pytest/logging.py:377–382  ·  view source on GitHub ↗

Get the logging handler used by the fixture. :rtype: LogCaptureHandler

(self)

Source from the content-addressed store, hash-verified

375
376 @property
377 def handler(self) -> LogCaptureHandler:
378 """Get the logging handler used by the fixture.
379
380 :rtype: LogCaptureHandler
381 """
382 return self._item.stash[caplog_handler_key]
383
384 def get_records(self, when: str) -> List[logging.LogRecord]:
385 """Get the logging records for one of the possible test phases.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected