We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
usefixture
1 parent fc2bdc7 commit ca714a7Copy full SHA for ca714a7
1 file changed
doc/en/how-to/fixtures.rst
@@ -1746,17 +1746,15 @@ into a configuration file:
1746
1747
.. warning::
1748
1749
- Note this mark has no effect in **fixture functions**. For example,
1750
- this **will not work as expected**:
+ ``@pytest.mark.usefixtures`` cannot be used on **fixture functions**. For example,
+ this is an error:
1751
1752
.. code-block:: python
1753
1754
@pytest.mark.usefixtures("my_other_fixture")
1755
@pytest.fixture
1756
def my_fixture_that_sadly_wont_use_my_other_fixture(): ...
1757
1758
- This generates a deprecation warning, and will become an error in Pytest 8.
1759
-
1760
.. _`override fixtures`:
1761
1762
Overriding fixtures on various levels
0 commit comments