@@ -85,8 +85,7 @@ def pytest_configure(config):
85
85
86
86
# -------------------------------------------------------------------------
87
87
# Bootstrapping hooks called for plugins registered early enough:
88
- # internal and 3rd party plugins as well as directly
89
- # discoverable conftest.py local plugins.
88
+ # internal and 3rd party plugins.
90
89
# -------------------------------------------------------------------------
91
90
92
91
@@ -96,6 +95,9 @@ def pytest_cmdline_parse(pluginmanager, args):
96
95
97
96
Stops at first non-None result, see :ref:`firstresult`
98
97
98
+ .. note::
99
+ This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
100
+
99
101
:param _pytest.config.PytestPluginManager pluginmanager: pytest plugin manager
100
102
:param list[str] args: list of arguments passed on the command line
101
103
"""
@@ -107,6 +109,9 @@ def pytest_cmdline_preparse(config, args):
107
109
This hook is considered deprecated and will be removed in a future pytest version. Consider
108
110
using :func:`pytest_load_initial_conftests` instead.
109
111
112
+ .. note::
113
+ This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
114
+
110
115
:param _pytest.config.Config config: pytest config object
111
116
:param list[str] args: list of arguments passed on the command line
112
117
"""
@@ -117,6 +122,9 @@ def pytest_cmdline_main(config):
117
122
""" called for performing the main command line action. The default
118
123
implementation will invoke the configure hooks and runtest_mainloop.
119
124
125
+ .. note::
126
+ This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
127
+
120
128
Stops at first non-None result, see :ref:`firstresult`
121
129
122
130
:param _pytest.config.Config config: pytest config object
@@ -127,6 +135,9 @@ def pytest_load_initial_conftests(early_config, parser, args):
127
135
""" implements the loading of initial conftest files ahead
128
136
of command line option parsing.
129
137
138
+ .. note::
139
+ This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
140
+
130
141
:param _pytest.config.Config early_config: pytest config object
131
142
:param list[str] args: list of arguments passed on the command line
132
143
:param _pytest.config.Parser parser: to add command line options
0 commit comments