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

Method __init__

src/_pytest/logging.py:774–783  ·  view source on GitHub ↗
(
        self,
        terminal_reporter: TerminalReporter,
        capture_manager: Optional[CaptureManager],
    )

Source from the content-addressed store, hash-verified

772 stream: TerminalReporter = None # type: ignore
773
774 def __init__(
775 self,
776 terminal_reporter: TerminalReporter,
777 capture_manager: Optional[CaptureManager],
778 ) -> None:
779 super().__init__(stream=terminal_reporter) # type: ignore[arg-type]
780 self.capture_manager = capture_manager
781 self.reset()
782 self.set_when(None)
783 self._test_outcome_written = False
784
785 def reset(self) -> None:
786 """Reset the handler; should be called before the start of each test."""

Callers

nothing calls this directly

Calls 3

resetMethod · 0.95
set_whenMethod · 0.95
__init__Method · 0.45

Tested by

no test coverage detected