MCPcopy Create free account
hub / github.com/pytest-dev/pytest / fixture

Function fixture

src/_pytest/fixtures.py:1224–1238  ·  view source on GitHub ↗
(
    fixture_function: FixtureFunction,
    *,
    scope: "Union[_ScopeName, Callable[[str, Config], _ScopeName]]" = ...,
    params: Optional[Iterable[object]] = ...,
    autouse: bool = ...,
    ids: Optional[
        Union[
            Iterable[Union[None, str, float, int, bool]],
            Callable[[Any], Optional[object]],
        ]
    ] = ...,
    name: Optional[str] = ...,
)

Source from the content-addressed store, hash-verified

1222
1223@overload
1224def fixture(
1225 fixture_function: FixtureFunction,
1226 *,
1227 scope: "Union[_ScopeName, Callable[[str, Config], _ScopeName]]" = ...,
1228 params: Optional[Iterable[object]] = ...,
1229 autouse: bool = ...,
1230 ids: Optional[
1231 Union[
1232 Iterable[Union[None, str, float, int, bool]],
1233 Callable[[Any], Optional[object]],
1234 ]
1235 ] = ...,
1236 name: Optional[str] = ...,
1237) -> FixtureFunction:
1238 ...
1239
1240
1241@overload

Callers 1

yield_fixtureFunction · 0.70

Calls 1

Tested by

no test coverage detected