Updated fixtures.rst

Added fixtures decorators, otherwise it seems possible to use standard Python functions as fixtures.
This commit is contained in:
piermarcob 2022-08-10 17:28:34 +02:00 committed by GitHub
parent 121b69276a
commit e2ff60f8e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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]