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

Method add_example

src/pytest_bdd/parser.py:112–118  ·  view source on GitHub ↗

Add a new example row. Args: values (Sequence[str]): The values for the example row.

(self, values: Sequence[str])

Source from the content-addressed store, hash-verified

110 self.example_params = [str(key) for key in keys]
111
112 def add_example(self, values: Sequence[str]) -> None:
113 """Add a new example row.
114
115 Args:
116 values (Sequence[str]): The values for the example row.
117 """
118 self.examples.append([str(value) if value is not None else "" for value in values])
119
120 def as_contexts(self) -> Iterable[dict[str, Any]]:
121 """Generate contexts for the examples.

Callers 1

parse_scenarioMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected