Skip to content

Commit 7a12e6a

Browse files
author
Sylvain MARIE
committed
Minor docstring edits
1 parent 46f3c5f commit 7a12e6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest_cases/main_fixtures.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,8 @@ def _new_fixture(request, **all_fixtures):
641641

642642
class fixture_ref:
643643
"""
644-
A reference to a fixture, to be used in `pytest_parametrize_plus`
644+
A reference to a fixture, to be used in `pytest_parametrize_plus`.
645+
You can create it from a fixture name or a fixture object (function).
645646
"""
646647
__slots__ = 'fixture',
647648

@@ -652,7 +653,7 @@ def __init__(self, fixture):
652653
def pytest_parametrize_plus(argnames, argvalues, indirect=False, ids=None, scope=None, **kwargs):
653654
"""
654655
Equivalent to `@pytest.mark.parametrize` but also supports the fact that in argvalues one can include references to
655-
fixtures with `fixture_ref(<fixture_name>)`.
656+
fixtures with `fixture_ref(<fixture>)` where <fixture> can be the fixture name or fixture function.
656657
657658
When such a fixture reference is detected in the argvalues, a new function-scope fixture will be created with a
658659
unique name, and the test function will be wrapped so as to be injected .

0 commit comments

Comments
 (0)