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

Commit

Permalink
Fixes worksheet selection by name in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas committed Jul 22, 2019
1 parent 858b837 commit 424445e
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions onegov/swissvotes/tests/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -2279,13 +2279,7 @@ def test_votes_export(swissvotes_app):
votes.export_xlsx(file)
file.seek(0)
workbook = open_workbook(file_contents=file.read())
sheet = workbook.sheet_by_index(0)
xlsx = dict(
zip(
[cell.value for cell in sheet.row(0)],
[cell.value for cell in sheet.row(1)]
)
)
sheet = workbook.sheet_by_name('DATA')
xlsx = dict(
zip(
[cell.value for cell in sheet.row(0)],
Expand Down

0 comments on commit 424445e

Please sign in to comment.