Skip to content

Commit

Permalink
moved test imports
Browse files Browse the repository at this point in the history
  • Loading branch information
aschroed committed Mar 29, 2022
1 parent 17811d3 commit b36107f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_get_field_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import wranglertools.get_field_info as gfi
import pytest
from operator import itemgetter
import xlrd3

# test data is in conftest.py

Expand Down Expand Up @@ -342,8 +344,6 @@ def test_get_uploadable_fields_mock(connection_mock, mocker, returned_vendor_sch

def xls_to_list(xls_file, sheet):
"""To compare xls files to reference ones, return a sorted list of content."""
from operator import itemgetter
import xlrd3
return_list = []
wb = xlrd3.open_workbook(xls_file)
read_sheet = wb.sheet_by_name(sheet)
Expand All @@ -361,7 +361,6 @@ def xls_to_list(xls_file, sheet):

def xls_field_order(xls_file, sheet):
# returns list of fields (in order) in an excel sheet
import xlrd3
wb = xlrd3.open_workbook(xls_file).sheet_by_name(sheet)
return [str(wb.cell_value(0, col)) for col in range(1, wb.ncols)]

Expand Down

0 comments on commit b36107f

Please sign in to comment.