From dbaa9464ba3a3fd2b8ef9b31c795f99740048b1f Mon Sep 17 00:00:00 2001 From: Jose Carlos Menezes Date: Fri, 12 Oct 2018 09:43:00 -0300 Subject: [PATCH] Update usefixtures documentation Clarifying that it can't be used with fixture functions --- changelog/3713.doc.rst | 1 + doc/en/reference.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 changelog/3713.doc.rst diff --git a/changelog/3713.doc.rst b/changelog/3713.doc.rst new file mode 100644 index 000000000..c1d6b51b8 --- /dev/null +++ b/changelog/3713.doc.rst @@ -0,0 +1 @@ +Update usefixtures documentation to clarify that it can't be used with fixture functions. diff --git a/doc/en/reference.rst b/doc/en/reference.rst index 0c0fdff01..1537efc61 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -178,7 +178,7 @@ Mark a test function as using the given fixture names. .. warning:: - This mark can be used with *test functions* only, having no affect when applied + This mark has no effect when applied to a **fixture** function. .. py:function:: pytest.mark.usefixtures(*names)