Skip to content

Commit

Permalink
Exercício 29
Browse files Browse the repository at this point in the history
  • Loading branch information
jadirj committed Oct 11, 2024
1 parent 9c1dd57 commit 17e5974
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions backend/tests/vocabularies/test_voc_estados.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ def test_vocabulary(self):
assert isinstance(self.vocab, SimpleVocabulary)

@pytest.mark.parametrize(
"token",
["PR", "SP", "DF"],
"token,value",
[
["PR", "Paraná"],
["SP", "São Paulo"],
["PE", "Pernambuco"],
],
)
def test_token(self, token):
assert token in [x for x in self.vocab.by_token]
def test_token(self, token, value):
term = self.vocab.getTermByToken(token)
assert term.title == value

0 comments on commit 17e5974

Please sign in to comment.