From ae370faf189a7318cc821f9d45b45148ae1c3df3 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Sun, 6 Jan 2019 17:02:45 -0200 Subject: [PATCH] altera teste de documento administrativo inexistente --- sapl/protocoloadm/tests/test_protocoloadm.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sapl/protocoloadm/tests/test_protocoloadm.py b/sapl/protocoloadm/tests/test_protocoloadm.py index 2f61d359f..d61d7b2b3 100644 --- a/sapl/protocoloadm/tests/test_protocoloadm.py +++ b/sapl/protocoloadm/tests/test_protocoloadm.py @@ -1,10 +1,10 @@ from datetime import date, timedelta -import pytest from django.core.urlresolvers import reverse from django.utils.encoding import force_text from django.utils.translation import ugettext_lazy as _ from model_mommy import mommy +import pytest from sapl.materia.models import UnidadeTramitacao from sapl.protocoloadm.forms import (AnularProcoloAdmForm, @@ -368,6 +368,9 @@ def test_documento_administrativo_invalido(): def test_documento_administrativo_protocolo_inexistente(): tipo = mommy.make(TipoDocumentoAdministrativo) + protocolo = mommy.make(Protocolo, + ano=2017, + numero=10) form = DocumentoAdministrativoForm(data={'ano': '2017', 'tipo': str(tipo.pk),