From a8ad89cdb3973537d9f75a33c0c6a96c760b4a69 Mon Sep 17 00:00:00 2001 From: Ronny Pfannschmidt Date: Thu, 5 Apr 2018 18:39:57 +0200 Subject: [PATCH] fix documentation references --- doc/en/reference.rst | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/en/reference.rst b/doc/en/reference.rst index d87ec28f3..5af2ee903 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -94,6 +94,8 @@ Marks can be used apply meta data to *test functions* (but not fixtures), which fixtures or plugins. + + .. _`pytest.mark.filterwarnings ref`: pytest.mark.filterwarnings @@ -200,9 +202,9 @@ For example: def test_function(): ... -Will create and attach a :class:`MarkInfo <_pytest.mark.MarkInfo>` object to the collected +Will create and attach a :class:`Mark <_pytest.mark.structures.Mark>` object to the collected :class:`Item <_pytest.nodes.Item>`, which can then be accessed by fixtures or hooks with -:meth:`Node.get_marker <_pytest.nodes.Node.get_marker>`. The ``mark`` object will have the following attributes: +:meth:`Node.iter_markers <_pytest.nodes.Node.iter_markers>`. The ``mark`` object will have the following attributes: .. code-block:: python @@ -685,18 +687,28 @@ MarkDecorator .. autoclass:: _pytest.mark.MarkDecorator :members: + MarkGenerator ~~~~~~~~~~~~~ .. autoclass:: _pytest.mark.MarkGenerator :members: + MarkInfo ~~~~~~~~ .. autoclass:: _pytest.mark.MarkInfo :members: + +Mark +~~~~ + +.. autoclass:: _pytest.mark.structures.Mark + :members: + + Metafunc ~~~~~~~~