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

Method getplugin

src/_pytest/config/__init__.py:470–473  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

468 return ret
469
470 def getplugin(self, name: str):
471 # Support deprecated naming because plugins (xdist e.g.) use it.
472 plugin: Optional[_PluggyPlugin] = self.get_plugin(name)
473 return plugin
474
475 def hasplugin(self, name: str) -> bool:
476 """Return whether a plugin with the given name is registered."""

Callers 15

pytest_configureFunction · 0.80
pytest_unconfigureFunction · 0.80
disabledMethod · 0.80
capsysFunction · 0.80
capsysbinaryFunction · 0.80
capfdFunction · 0.80
capfdbinaryFunction · 0.80
_init_pdbMethod · 0.80
_enter_pdbFunction · 0.80
_show_fixture_actionFunction · 0.80

Calls

no outgoing calls

Tested by 6

pdblistMethod · 0.64
pastebinlistMethod · 0.64
pastebinMethod · 0.64