Skip to content

Commit

Permalink
Fix assertion in test, use modified, rather than original input_pt
Browse files Browse the repository at this point in the history
augusto-herrmann committed Sep 25, 2024
1 parent 6c8b82f commit 77b7a21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/plano_trabalho/participante_outra_lotacao_test.py
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ def test_create_plano_trabalho_participante_outra_unidade(self):

assert response.status_code == status.HTTP_201_CREATED
response_data = response.json()
self.assert_equal_plano_trabalho(response_data, self.input_pt)
self.assert_equal_plano_trabalho(response_data, input_pt)
# verifica se a resposta veio com o cod_unidade_executora esperado
assert response_data['cod_unidade_executora'] == 101

@@ -50,6 +50,6 @@ def test_create_plano_trabalho_participante_outra_unidade(self):
response_data = response.json()

# verifica se os dados gravados são iguais aos informados
self.assert_equal_plano_trabalho(response_data, self.input_pt)
self.assert_equal_plano_trabalho(response_data, input_pt)
# verifica o cod_unidade_executora
assert response_data['cod_unidade_executora'] == 101

0 comments on commit 77b7a21

Please sign in to comment.