Add reference docs for pytest.mark.usefixtures

This commit is contained in:
Bruno Oliveira 2018-07-06 20:55:42 -03:00
parent 7e8f7bfa16
commit d7b722e2ae
1 changed files with 14 additions and 0 deletions

View File

@ -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