From 17e5974d91ce56fe7bfaba166dbca60f13454580 Mon Sep 17 00:00:00 2001 From: jadirj <52298160+jadirj@users.noreply.github.com> Date: Fri, 11 Oct 2024 17:19:39 -0300 Subject: [PATCH] =?UTF-8?q?Exerc=C3=ADcio=2029?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/vocabularies/test_voc_estados.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/backend/tests/vocabularies/test_voc_estados.py b/backend/tests/vocabularies/test_voc_estados.py index 199a1f3..93c392f 100644 --- a/backend/tests/vocabularies/test_voc_estados.py +++ b/backend/tests/vocabularies/test_voc_estados.py @@ -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