diff --git a/representatives_votes/contrib/parltrack/tests/test_import.py b/representatives_votes/contrib/parltrack/tests/test_import.py index 1ea818211adf5c002db113b14d8daaeb2a00f6ce..444a79b2b2559b1dd807b031db6d28a5c4f4b309 100644 --- a/representatives_votes/contrib/parltrack/tests/test_import.py +++ b/representatives_votes/contrib/parltrack/tests/test_import.py @@ -7,8 +7,8 @@ from django.core.management import call_command from representatives_votes.contrib.parltrack import import_dossiers from representatives_votes.contrib.parltrack import import_votes from representatives_votes.models import Dossier, Proposal, Vote +import representatives from representatives.models import Representative -from representatives.contrib import parltrack def _test_import(scenario, callback): @@ -45,7 +45,7 @@ def test_parltrack_import_votes(): model.objects.all().delete() call_command('loaddata', os.path.join(os.path.abspath( - parltrack.__path__[0]), 'tests', 'representatives_expected.json')) + representatives.__path__[0]), 'fixtures', 'representatives_test.json')) call_command('loaddata', os.path.join(os.path.dirname(__file__), 'dossiers_expected.json')) diff --git a/setup.py b/setup.py index 778b5453366baee951d6f3db7c6d9d2f883db397..bbf434fc0a686a8c3710c48cbd773f1cf677667e 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( license='GPLv3', keywords='django government parliament votes', install_requires=[ - 'django-representatives', + 'django-representatives>=0.0.7', 'py-dateutil', 'pytz', 'ijson',