def get_step_keywords(dialect_name="en") -> List[str]: dialect = Dialect.for_name(dialect_name) keywords = (dialect.given_keywords + dialect.when_keywords + dialect.then_keywords + dialect.and_keywords + dialect.but_keywords) return [kw.strip() for kw in keywords]
def dialect(self): """ The Gherkin dialect for the feature. """ return Dialect.for_name(self.language)