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

Method hasplugin

src/_pytest/config/__init__.py:475–477  ·  view source on GitHub ↗

Return whether a plugin with the given name is registered.

(self, name: str)

Source from the content-addressed store, hash-verified

473 return plugin
474
475 def hasplugin(self, name: str) -> bool:
476 """Return whether a plugin with the given name is registered."""
477 return bool(self.get_plugin(name))
478
479 def pytest_configure(self, config: "Config") -> None:
480 """:meta private:"""

Callers 1

test_has_pluginMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_has_pluginMethod · 0.64