Example #1
0
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]
Example #2
0
    def dialect(self):
        """
        The Gherkin dialect for the feature.
        """

        return Dialect.for_name(self.language)
Example #3
0
    def dialect(self):
        """
        The Gherkin dialect for the feature.
        """

        return Dialect.for_name(self.language)