Browse Source

Fix qa

pull/486/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
4db60cc78e
  1. 6
      base/forms.py
  2. 7
      base/views.py
  3. 3
      comissoes/tests/test_comissoes.py

6
base/forms.py

@ -1,14 +1,8 @@
from crispy_forms.helper import FormHelper
from crispy_forms.layout import HTML, Fieldset, Layout
from django import forms
from django.contrib.auth.forms import AuthenticationForm
from django.core.exceptions import ValidationError
from django.forms import ModelForm
from django.utils.translation import ugettext_lazy as _
import crispy_layout_mixin
import sapl
from crispy_layout_mixin import form_actions
from sapl.settings import MAX_IMAGE_UPLOAD_SIZE
from .models import CasaLegislativa

7
base/views.py

@ -1,9 +1,3 @@
import os
from functools import lru_cache
from django.core.exceptions import ObjectDoesNotExist
from django.core.urlresolvers import reverse
from django.views.generic import FormView
from django.views.generic.base import TemplateView
import crud.base
@ -13,7 +7,6 @@ from .forms import CasaLegislativaForm
from .models import CasaLegislativa
# @lru_cache(maxsize=1)
def get_casalegislativa():
return CasaLegislativa.objects.first()

3
comissoes/tests/test_comissoes.py

@ -2,8 +2,7 @@ import pytest
from django.core.urlresolvers import reverse
from model_mommy import mommy
from comissoes.models import (CargoComissao, Comissao, Composicao,
Participacao, Periodo, TipoComissao)
from comissoes.models import Comissao, Composicao, Periodo, TipoComissao
from parlamentares.models import Filiacao, Parlamentar, Partido

Loading…
Cancel
Save