Skip to content

Commit ad6a530

Browse files
committed
100% test coverage on webio
1 parent 69211f7 commit ad6a530

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tests/test_webio.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ def test_excel_input_get_file_tuple(self):
5555
@raises(NotImplementedError)
5656
def test_get_sheet(self):
5757
myinput = TestInput()
58-
sheet = myinput.get_sheet(unrelated="foo bar")
58+
myinput.get_sheet(unrelated="foo bar")
5959

6060
@raises(NotImplementedError)
6161
def test_get_array(self):
6262
myinput = TestInput()
63-
array = myinput.get_array(unrelated="foo bar")
63+
myinput.get_array(unrelated="foo bar")
6464

6565
@raises(NotImplementedError)
6666
def test_get_dict(self):
6767
myinput = TestInput()
68-
result = myinput.get_dict(unrelated="foo bar")
68+
myinput.get_dict(unrelated="foo bar")
6969

7070
@raises(NotImplementedError)
7171
def test_get_records(self):
@@ -160,6 +160,11 @@ def test_get_sheet(self):
160160
assert sheet.to_array() == self.data
161161
f.close()
162162

163+
@raises(Exception)
164+
def test_wrong_file_tuple_returned(self):
165+
myinput = TestExtendedInput()
166+
myinput.get_sheet(field_name=('xls', None))
167+
163168

164169
class TestExcelInputOnBook:
165170
def setUp(self):

0 commit comments

Comments
 (0)