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

Class Scenario

src/pytest_bdd/parser.py:240–260  ·  view source on GitHub ↗

Represents a scenario with steps. Attributes: feature (Feature): The feature to which this scenario belongs. keyword (str): The keyword used to define the scenario. name (str): The name of the scenario. line_number (int): The line number where the scenario starts

Source from the content-addressed store, hash-verified

238
239@dataclass(eq=False)
240class Scenario:
241 """Represents a scenario with steps.
242
243 Attributes:
244 feature (Feature): The feature to which this scenario belongs.
245 keyword (str): The keyword used to define the scenario.
246 name (str): The name of the scenario.
247 line_number (int): The line number where the scenario starts in the file.
248 steps (List[Step]): The list of steps in the scenario.
249 description (Optional[str]): The description of the scenario.
250 tags (set[str]): A set of tags associated with the scenario.
251 """
252
253 feature: Feature
254 keyword: str
255 name: str
256 line_number: int
257 steps: list[Step]
258 description: str | None = None
259 tags: set[str] = field(default_factory=set)
260 rule: Rule | None = None
261
262
263@dataclass(eq=False)

Callers 1

renderMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…