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

Method pytest_plugin_registered

src/_pytest/terminal.py:600–606  ·  view source on GitHub ↗
(self, plugin: _PluggyPlugin)

Source from the content-addressed store, hash-verified

598 self._add_stats("warnings", [warning_report])
599
600 def pytest_plugin_registered(self, plugin: _PluggyPlugin) -> None:
601 if self.config.option.traceconfig:
602 msg = f"PLUGIN registered: {plugin}"
603 # XXX This event may happen during setup/teardown time
604 # which unfortunately captures our output here
605 # which garbles our output if we use self.write_line.
606 self.write_line(msg)
607
608 def pytest_deselected(self, items: Sequence[Item]) -> None:
609 self._add_stats("deselected", items)

Callers

nothing calls this directly

Calls 1

write_lineMethod · 0.95

Tested by

no test coverage detected