Commit d150e7c3 authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Fix QA

parent 714aab07
...@@ -231,8 +231,6 @@ class MandateManager(models.Manager): ...@@ -231,8 +231,6 @@ class MandateManager(models.Manager):
'group', 'group',
'constituency') 'constituency')
class MandateManager(models.Manager):
def get_by_natural_key(self, begin_date, end_date, representative_slug, def get_by_natural_key(self, begin_date, end_date, representative_slug,
group_name, group_kind, group_chamber_nk): group_name, group_kind, group_chamber_nk):
representative = Representative.objects.get_by_natural_key( representative = Representative.objects.get_by_natural_key(
......
...@@ -23,9 +23,9 @@ class TestBase(test.TestCase): ...@@ -23,9 +23,9 @@ class TestBase(test.TestCase):
if field in compare: if field in compare:
compare.pop(field) compare.pop(field)
for re in self._exclude_re: for r in self._exclude_re:
for field in compare.keys(): for field in compare.keys():
if re.match(field): if r.match(field):
compare.pop(field) compare.pop(field)
try: try:
......
...@@ -2,7 +2,6 @@ import mock ...@@ -2,7 +2,6 @@ import mock
import os import os
from django.core.management import call_command from django.core.management import call_command
from django.test import TestCase
from representatives_votes.contrib.parltrack import import_dossiers from representatives_votes.contrib.parltrack import import_dossiers
from representatives_votes.contrib.parltrack import import_votes from representatives_votes.contrib.parltrack import import_votes
from representatives_votes.models import Dossier, Proposal, Vote from representatives_votes.models import Dossier, Proposal, Vote
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment