From 54f8f6bbaa4f04365919d7cde65a458d6ad6d40b Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Wed, 15 Feb 2017 10:52:18 -0200 Subject: [PATCH] add o m VotoNominal a rules. Elemina erro travis --- sapl/rules/map_rules.py | 2 ++ sapl/test_urls.py | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/sapl/rules/map_rules.py b/sapl/rules/map_rules.py index c132045c4..8813f0931 100644 --- a/sapl/rules/map_rules.py +++ b/sapl/rules/map_rules.py @@ -153,6 +153,8 @@ rules_group_sessao = { (sessao.PresencaOrdemDia, __base__), (sessao.RegistroVotacao, __base__), (sessao.VotoParlamentar, __base__), + + (sessao.VotoNominal, __base__), ] } diff --git a/sapl/test_urls.py b/sapl/test_urls.py index a8df77d13..214b7e7bf 100644 --- a/sapl/test_urls.py +++ b/sapl/test_urls.py @@ -1,12 +1,12 @@ -import pytest from django.apps import apps from django.contrib.auth import get_user_model from django.contrib.auth.management import _get_all_permissions from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.db import transaction -from django.utils.translation import ugettext_lazy as _ from django.utils.translation import string_concat +from django.utils.translation import ugettext_lazy as _ +import pytest from sapl.crud.base import PermissionRequiredForAppCrudMixin from sapl.rules.apps import AppConfig, update_groups @@ -14,6 +14,7 @@ from scripts.lista_urls import lista_urls from .settings import SAPL_APPS + pytestmark = pytest.mark.django_db sapl_appconfs = [apps.get_app_config(n[5:]) for n in SAPL_APPS] @@ -198,7 +199,8 @@ apps_url_patterns_prefixs_and_users = { 'operador_painel': ['/painel']}, 'prefixs': [ '/painel', - '/sistema' + '/sistema', + '/voto-individual' ]}, 'parlamentares': { 'users': {'operador_geral': ['/sistema',