Skip to content

Commit

Permalink
Fix docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton3 committed Feb 20, 2025
1 parent 72b3441 commit f9af520
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog/13228.feature.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:ref:`pytest.HIDDEN_PARAM` can now be used in ``id`` of :func:`pytest.param` or in
:ref:`hidden-param` can now be used in ``id`` of :func:`pytest.param` or in
``ids`` of :py:func:`Metafunc.parametrize <pytest.Metafunc.parametrize>`.
It hides the parameter set from the test name.
2 changes: 1 addition & 1 deletion doc/en/reference/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The current pytest version, as a string::
>>> pytest.__version__
'7.0.0'

.. _`pytest.HIDDEN_PARAM ref`:
.. _`hidden-param`:

pytest.HIDDEN_PARAM
~~~~~~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion src/_pytest/mark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ def test_eval(test_input, expected):
:ref:`pytest.mark.usefixtures <pytest.mark.usefixtures ref>` cannot be added via this parameter.
:type id: str | Literal[pytest.HIDDEN_PARAM] | None
:param id: The id to attribute to this parameter set.
.. versionadded: 8.4
:ref:`pytest.HIDDEN_PARAM` means to hide the parameter set
:ref:`hidden-param` means to hide the parameter set
from the test name. Can only be used at most 1 time, as
test names need to be unique.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/_pytest/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ def parametrize(
.. versionadded: 8.4
:ref:`pytest.HIDDEN_PARAM` means to hide the parameter set
:ref:`hidden-param` means to hide the parameter set
from the test name. Can only be used at most 1 time, as
test names need to be unique.
Expand Down

0 comments on commit f9af520

Please sign in to comment.