We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c12d8c1 commit 8378a34Copy full SHA for 8378a34
src/pytest_bdd/parser.py
@@ -330,22 +330,6 @@ def get_tag_names(tag_data: list[GherkinTag]) -> set[str]:
330
"""
331
return {tag.name.lstrip("@") for tag in tag_data}
332
333
- @staticmethod
334
- def get_step_type(keyword: str) -> str | None:
335
- """Map a step keyword to its corresponding type.
336
-
337
- Args:
338
- keyword (str): The keyword for the step (e.g., 'given', 'when', 'then').
339
340
- Returns:
341
- Optional[str]: The type of the step, or None if the keyword is unknown.
342
- """
343
- return {
344
- "given": GIVEN,
345
- "when": WHEN,
346
- "then": THEN,
347
- }.get(keyword)
348
349
def parse_steps(self, steps_data: list[GherkinStep]) -> list[Step]:
350
"""Parse a list of step data into Step objects.
351
0 commit comments