Add reference docs for pytest.mark.usefixtures
This commit is contained in:
parent
7e8f7bfa16
commit
d7b722e2ae
|
@ -161,6 +161,20 @@ Skip a test function if a condition is ``True``.
|
||||||
:keyword str reason: Reason why the test function is being skipped.
|
:keyword str reason: Reason why the test function is being skipped.
|
||||||
|
|
||||||
|
|
||||||
|
.. _`pytest.mark.usefixtures ref`:
|
||||||
|
|
||||||
|
pytest.mark.usefixtures
|
||||||
|
~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
**Tutorial**: :ref:`usefixtures`.
|
||||||
|
|
||||||
|
Mark a test function as using the given fixture names.
|
||||||
|
|
||||||
|
.. py:function:: pytest.mark.usefixtures(*names)
|
||||||
|
|
||||||
|
:param args: the names of the fixture to use as strings
|
||||||
|
|
||||||
|
|
||||||
.. _`pytest.mark.xfail ref`:
|
.. _`pytest.mark.xfail ref`:
|
||||||
|
|
||||||
pytest.mark.xfail
|
pytest.mark.xfail
|
||||||
|
|
Loading…
Reference in New Issue