@@ -100,12 +100,12 @@ def pytest_addoption(parser: "Parser", pluginmanager: "PytestPluginManager") ->
100
100
to change how command line options are added.
101
101
102
102
Options can later be accessed through the
103
- :py:class:`config <_pytest.config .Config>` object, respectively:
103
+ :py:class:`config <pytest .Config>` object, respectively:
104
104
105
- - :py:func:`config.getoption(name) <_pytest.config .Config.getoption>` to
105
+ - :py:func:`config.getoption(name) <pytest .Config.getoption>` to
106
106
retrieve the value of a command line option.
107
107
108
- - :py:func:`config.getini(name) <_pytest.config .Config.getini>` to retrieve
108
+ - :py:func:`config.getini(name) <pytest .Config.getini>` to retrieve
109
109
a value read from an ini-style file.
110
110
111
111
The config object is passed around on many internal objects via the ``.config``
@@ -129,7 +129,7 @@ def pytest_configure(config: "Config") -> None:
129
129
.. note::
130
130
This hook is incompatible with ``hookwrapper=True``.
131
131
132
- :param _pytest.config .Config config: The pytest config object.
132
+ :param pytest .Config config: The pytest config object.
133
133
"""
134
134
135
135
@@ -166,7 +166,7 @@ def pytest_cmdline_preparse(config: "Config", args: List[str]) -> None:
166
166
.. note::
167
167
This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
168
168
169
- :param _pytest.config .Config config: The pytest config object.
169
+ :param pytest .Config config: The pytest config object.
170
170
:param List[str] args: Arguments passed on the command line.
171
171
"""
172
172
@@ -178,7 +178,7 @@ def pytest_cmdline_main(config: "Config") -> Optional[Union["ExitCode", int]]:
178
178
179
179
Stops at first non-None result, see :ref:`firstresult`.
180
180
181
- :param _pytest.config .Config config: The pytest config object.
181
+ :param pytest .Config config: The pytest config object.
182
182
"""
183
183
184
184
@@ -191,7 +191,7 @@ def pytest_load_initial_conftests(
191
191
.. note::
192
192
This hook will not be called for ``conftest.py`` files, only for setuptools plugins.
193
193
194
- :param _pytest.config .Config early_config: The pytest config object.
194
+ :param pytest .Config early_config: The pytest config object.
195
195
:param List[str] args: Arguments passed on the command line.
196
196
:param _pytest.config.argparsing.Parser parser: To add command line options.
197
197
"""
@@ -246,7 +246,7 @@ def pytest_collection_modifyitems(
246
246
the items in-place.
247
247
248
248
:param pytest.Session session: The pytest session object.
249
- :param _pytest.config .Config config: The pytest config object.
249
+ :param pytest .Config config: The pytest config object.
250
250
:param List[pytest.Item] items: List of item objects.
251
251
"""
252
252
@@ -271,7 +271,7 @@ def pytest_ignore_collect(
271
271
272
272
:param pathlib.Path fspath: The path to analyze.
273
273
:param LEGACY_PATH path: The path to analyze.
274
- :param _pytest.config .Config config: The pytest config object.
274
+ :param pytest .Config config: The pytest config object.
275
275
276
276
.. versionchanged:: 6.3.0
277
277
The ``fspath`` parameter was added as a :class:`pathlib.Path`
@@ -385,7 +385,7 @@ def pytest_make_parametrize_id(
385
385
386
386
Stops at first non-None result, see :ref:`firstresult`.
387
387
388
- :param _pytest.config .Config config: The pytest config object.
388
+ :param pytest .Config config: The pytest config object.
389
389
:param val: The parametrized value.
390
390
:param str argname: The automatic parameter name produced by pytest.
391
391
"""
@@ -609,7 +609,7 @@ def pytest_sessionfinish(
609
609
def pytest_unconfigure (config : "Config" ) -> None :
610
610
"""Called before test process is exited.
611
611
612
- :param _pytest.config .Config config: The pytest config object.
612
+ :param pytest .Config config: The pytest config object.
613
613
"""
614
614
615
615
@@ -628,7 +628,7 @@ def pytest_assertrepr_compare(
628
628
*in* a string will be escaped. Note that all but the first line will
629
629
be indented slightly, the intention is for the first line to be a summary.
630
630
631
- :param _pytest.config .Config config: The pytest config object.
631
+ :param pytest .Config config: The pytest config object.
632
632
"""
633
633
634
634
@@ -677,7 +677,7 @@ def pytest_report_header(
677
677
) -> Union [str , List [str ]]:
678
678
"""Return a string or list of strings to be displayed as header info for terminal reporting.
679
679
680
- :param _pytest.config .Config config: The pytest config object.
680
+ :param pytest .Config config: The pytest config object.
681
681
:param Path startpath: The starting dir.
682
682
:param LEGACY_PATH startdir: The starting dir.
683
683
@@ -713,7 +713,7 @@ def pytest_report_collectionfinish(
713
713
714
714
.. versionadded:: 3.2
715
715
716
- :param _pytest.config .Config config: The pytest config object.
716
+ :param pytest .Config config: The pytest config object.
717
717
:param Path startpath: The starting path.
718
718
:param LEGACY_PATH startdir: The starting dir.
719
719
:param items: List of pytest items that are going to be executed; this list should not be modified.
@@ -752,7 +752,7 @@ def pytest_report_teststatus(
752
752
for example ``"rerun", "R", ("RERUN", {"yellow": True})``.
753
753
754
754
:param report: The report object whose status is to be returned.
755
- :param _pytest.config .Config config: The pytest config object.
755
+ :param pytest .Config config: The pytest config object.
756
756
757
757
Stops at first non-None result, see :ref:`firstresult`.
758
758
"""
@@ -767,7 +767,7 @@ def pytest_terminal_summary(
767
767
768
768
:param _pytest.terminal.TerminalReporter terminalreporter: The internal terminal reporter object.
769
769
:param int exitstatus: The exit status that will be reported back to the OS.
770
- :param _pytest.config .Config config: The pytest config object.
770
+ :param pytest .Config config: The pytest config object.
771
771
772
772
.. versionadded:: 4.2
773
773
The ``config`` parameter.
@@ -857,7 +857,7 @@ def pytest_markeval_namespace(config: "Config") -> Dict[str, Any]:
857
857
858
858
.. versionadded:: 6.2
859
859
860
- :param _pytest.config .Config config: The pytest config object.
860
+ :param pytest .Config config: The pytest config object.
861
861
:returns: A dictionary of additional globals to add.
862
862
"""
863
863
@@ -909,7 +909,7 @@ def pytest_enter_pdb(config: "Config", pdb: "pdb.Pdb") -> None:
909
909
Can be used by plugins to take special action just before the python
910
910
debugger enters interactive mode.
911
911
912
- :param _pytest.config .Config config: The pytest config object.
912
+ :param pytest .Config config: The pytest config object.
913
913
:param pdb.Pdb pdb: The Pdb instance.
914
914
"""
915
915
@@ -920,6 +920,6 @@ def pytest_leave_pdb(config: "Config", pdb: "pdb.Pdb") -> None:
920
920
Can be used by plugins to take special action just after the python
921
921
debugger leaves interactive mode.
922
922
923
- :param _pytest.config .Config config: The pytest config object.
923
+ :param pytest .Config config: The pytest config object.
924
924
:param pdb.Pdb pdb: The Pdb instance.
925
925
"""
0 commit comments