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

Function pytest_load_initial_conftests

src/_pytest/hookspec.py:187–199  ·  view source on GitHub ↗

Called to implement the loading of initial conftest files ahead of command line option parsing. .. note:: This hook will not be called for ``conftest.py`` files, only for setuptools plugins. :param pytest.Config early_config: The pytest config object. :param List[str] args:

(
    early_config: "Config", parser: "Parser", args: List[str]
)

Source from the content-addressed store, hash-verified

185
186
187def pytest_load_initial_conftests(
188 early_config: "Config", parser: "Parser", args: List[str]
189) -> None:
190 """Called to implement the loading of initial conftest files ahead
191 of command line option parsing.
192
193 .. note::
194 This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
195
196 :param pytest.Config early_config: The pytest config object.
197 :param List[str] args: Arguments passed on the command line.
198 :param pytest.Parser parser: To add command line options.
199 """
200
201
202# -------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected