From d7b722e2ae6dbf4b10bbba14c3a2dc5c4f2738b4 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Fri, 6 Jul 2018 20:55:42 -0300 Subject: [PATCH] Add reference docs for pytest.mark.usefixtures --- doc/en/reference.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/doc/en/reference.rst b/doc/en/reference.rst index fe9e87042..cdae37f95 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -161,6 +161,20 @@ Skip a test function if a condition is ``True``. :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