Merge pull request #4121 from labcodes/3713
Update usefixtures documentation
This commit is contained in:
1
changelog/3713.doc.rst
Normal file
1
changelog/3713.doc.rst
Normal file
@@ -0,0 +1 @@
|
||||
Update usefixtures documentation to clarify that it can't be used with fixture functions.
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user