From e2ff60f8e92fa6f61980000a011c6ff2280e80ec Mon Sep 17 00:00:00 2001 From: piermarcob <105425345+piermarcob@users.noreply.github.com> Date: Wed, 10 Aug 2022 17:28:34 +0200 Subject: [PATCH] Updated fixtures.rst Added fixtures decorators, otherwise it seems possible to use standard Python functions as fixtures. --- doc/en/how-to/fixtures.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/en/how-to/fixtures.rst b/doc/en/how-to/fixtures.rst index 080138774..ae3f447ef 100644 --- a/doc/en/how-to/fixtures.rst +++ b/doc/en/how-to/fixtures.rst @@ -129,10 +129,11 @@ example would work if we did it by hand: .. code-block:: python + @pytest.fixture def first_entry(): return "a" - + @pytest.fixture def order(first_entry): return [first_entry]