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

Method pytest_configure

src/_pytest/config/__init__.py:594–610  ·  view source on GitHub ↗

:meta private:

(self, config: Config)

Source from the content-addressed store, hash-verified

592 return bool(self.get_plugin(name))
593
594 def pytest_configure(self, config: Config) -> None:
595 """:meta private:"""
596 # XXX now that the pluginmanager exposes hookimpl(tryfirst...)
597 # we should remove tryfirst/trylast as markers.
598 config.addinivalue_line(
599 "markers",
600 "tryfirst: mark a hook implementation function such that the "
601 "plugin machinery will try to call it first/as early as possible. "
602 "DEPRECATED, use @pytest.hookimpl(tryfirst=True) instead.",
603 )
604 config.addinivalue_line(
605 "markers",
606 "trylast: mark a hook implementation function such that the "
607 "plugin machinery will try to call it last/as late as possible. "
608 "DEPRECATED, use @pytest.hookimpl(trylast=True) instead.",
609 )
610 self._configured = True
611
612 #
613 # Internal API for local conftest plugin handling.

Callers

nothing calls this directly

Calls 1

addinivalue_lineMethod · 0.80

Tested by

no test coverage detected