Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas committed Aug 8, 2019
1 parent 622bfb2 commit 6458629
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion onegov/election_day/formats/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def validate_integer(line, col, none_be_zero=True):
mapping={'col': col}))


## Helpers
# Helpers
def print_errors(errors):
error_list = sorted([
(e.filename, e.line, e.error.interpolate()) for e in errors
Expand Down
2 changes: 1 addition & 1 deletion onegov/election_day/formats/election/wabstic_majorz.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from onegov.ballot import ElectionResult
from onegov.election_day import _
from onegov.election_day.formats.common import EXPATS, validate_column, \
validate_integer, line_is_relevant
validate_integer, line_is_relevant
from onegov.election_day.formats.common import FileImportError
from onegov.election_day.formats.common import load_csv
from sqlalchemy.orm import object_session
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ def test_import_wabstic_majorz_invalid_values(session):
('wm_gemeinden', 2, 'Invalid integer: stmabgegeben'),
('wm_kandidatengde', 2, 'Invalid candidate results'),
('wm_kandidatengde', 3, 'Candidate with id 100 not in wm_kandidaten'),
('wm_kandidatengde', 3, 'Entity with id 3256 not in wmstatic_gemeinden'),
('wm_kandidatengde', 3,
'Entity with id 3256 not in wmstatic_gemeinden'),
('wm_wahl', 2, 'Invalid integer: absolutesmehr'),
('wm_wahl', 2, 'Value of ausmittlungsstand not between 0 and 3'),
('wmstatic_gemeinden', 2, '100 is unknown'),
Expand Down

0 comments on commit 6458629

Please sign in to comment.