From a97216070d3cfc3b7f441cd1d5e8e3d2b8dc5932 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 17 Mar 2016 14:51:03 -0300 Subject: [PATCH] Conserta bug em teste --- protocoloadm/test_protocoloadm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocoloadm/test_protocoloadm.py b/protocoloadm/test_protocoloadm.py index 49c09f851..7ca07bacb 100644 --- a/protocoloadm/test_protocoloadm.py +++ b/protocoloadm/test_protocoloadm.py @@ -19,7 +19,7 @@ def test_anular_protocolo_submit(client): # TODO: setar usuario e IP response = client.post(reverse('anular_protocolo'), - {'numero': '', + {'numero': '76', 'ano': '2016', 'justificativa_anulacao': 'TESTE', 'salvar': 'Anular'}, @@ -30,6 +30,7 @@ def test_anular_protocolo_submit(client): protocolo = Protocolo.objects.first() assert protocolo.numero == 76 assert protocolo.ano == 2016 + if not protocolo.anulado: pytest.fail(_("Protocolo deveria estar anulado")) assert protocolo.justificativa_anulacao == 'TESTE'