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

Function _pytest_bdd_example

src/pytest_bdd/plugin.py:45–55  ·  view source on GitHub ↗

The current scenario outline parametrization. This is used internally by pytest_bdd. If no outline is used, we just return an empty dict to render the current template without any actual variable. Otherwise, pytest_bdd will add all the context variables in this fixture from the

()

Source from the content-addressed store, hash-verified

43
44@pytest.fixture
45def _pytest_bdd_example() -> dict:
46 """The current scenario outline parametrization.
47
48 This is used internally by pytest_bdd.
49
50 If no outline is used, we just return an empty dict to render
51 the current template without any actual variable.
52 Otherwise, pytest_bdd will add all the context variables in this fixture
53 from the example definitions in the feature file.
54 """
55 return {}
56
57
58def pytest_addoption(parser: Parser) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…