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

Method reset

src/_pytest/logging.py:785–787  ·  view source on GitHub ↗

Reset the handler; should be called before the start of each test.

(self)

Source from the content-addressed store, hash-verified

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."""
787 self._first_record_emitted = False
788
789 def set_when(self, when: Optional[str]) -> None:
790 """Prepare for the given test phase (setup/call/teardown)."""

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected