Skip to content

Commit

Permalink
Explicit test for Language.bdd_prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pekkaklarck committed Oct 19, 2022
1 parent 0b50cff commit f9529fe
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions utest/api/test_languages.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ def test_subclasses_dont_have_wrong_attributes(self):
raise AssertionError(f"Language class '{cls}' has attribute "
f"'{attr}' not found on the base class.")

def test_bdd_prefixes(self):
class X(Language):
given_prefixes = ['List', 'is', 'default']
when_prefixes = {}
but_prefixes = ('but', 'any', 'iterable', 'works')
assert_equal(X().bdd_prefixes, {'List', 'is', 'default',
'but', 'any', 'iterable', 'works'})


class TestLanguageFromName(unittest.TestCase):

Expand Down

0 comments on commit f9529fe

Please sign in to comment.