diff --git a/sapl/audiencia/tests/test_audiencia.py b/sapl/audiencia/tests/test_audiencia.py index 930d1288b..62aae2b0b 100644 --- a/sapl/audiencia/tests/test_audiencia.py +++ b/sapl/audiencia/tests/test_audiencia.py @@ -1,7 +1,7 @@ import pytest import datetime from model_bakery import baker -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from sapl.audiencia import forms from sapl.audiencia.models import AnexoAudienciaPublica diff --git a/sapl/comissoes/tests/test_comissoes.py b/sapl/comissoes/tests/test_comissoes.py index 72b839a66..45161a731 100644 --- a/sapl/comissoes/tests/test_comissoes.py +++ b/sapl/comissoes/tests/test_comissoes.py @@ -1,6 +1,6 @@ import pytest from django.urls import reverse -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from model_bakery import baker from sapl.comissoes.models import Comissao, Composicao, Periodo @@ -88,13 +88,13 @@ def test_incluir_comissao_submit(admin_client): {'tipo': tipo.pk, 'nome': 'Comissão Teste', 'sigla': 'CT', - 'ativa': True, + 'ativa': True, 'data_criacao': '2016-03-22', 'unidade_deliberativa': True, 'salvar': 'salvar'}, follow=True) assert response.status_code == 200 - + comissao = Comissao.objects.first() assert comissao.nome == 'Comissão Teste' assert comissao.tipo == tipo diff --git a/sapl/compilacao/tests/test_tipo_texto_articulado_form.py b/sapl/compilacao/tests/test_tipo_texto_articulado_form.py index 1377966ff..8c58f6cfd 100644 --- a/sapl/compilacao/tests/test_tipo_texto_articulado_form.py +++ b/sapl/compilacao/tests/test_tipo_texto_articulado_form.py @@ -1,5 +1,5 @@ import pytest -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from model_bakery import baker from sapl.compilacao import forms diff --git a/sapl/crispy_layout_mixin.py b/sapl/crispy_layout_mixin.py index 57bc0d538..f234b2dc1 100644 --- a/sapl/crispy_layout_mixin.py +++ b/sapl/crispy_layout_mixin.py @@ -8,7 +8,7 @@ from django.contrib.contenttypes.models import ContentType from django.urls import reverse, reverse_lazy from django.utils import formats from django.utils.encoding import force_text -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ import yaml diff --git a/sapl/materia/tests/test_materia_form.py b/sapl/materia/tests/test_materia_form.py index 435d9dde6..9501dac83 100644 --- a/sapl/materia/tests/test_materia_form.py +++ b/sapl/materia/tests/test_materia_form.py @@ -1,5 +1,5 @@ import pytest -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ from model_bakery import baker from sapl.comissoes.models import Comissao, TipoComissao diff --git a/sapl/redireciona_urls/exceptions.py b/sapl/redireciona_urls/exceptions.py index e1a994bcb..0686d7953 100644 --- a/sapl/redireciona_urls/exceptions.py +++ b/sapl/redireciona_urls/exceptions.py @@ -1,4 +1,4 @@ -from django.utils.translation import ugettext as _ +from django.utils.translation import gettext as _ class UnknownUrlNameError(Exception):