More linting
parent
931b2f20f6
commit
c1c9358778
|
|
@ -37,8 +37,12 @@ def test_stream_equal_length():
|
||||||
message = ("Length of table_areas and columns"
|
message = ("Length of table_areas and columns"
|
||||||
" should be equal")
|
" should be equal")
|
||||||
with pytest.raises(ValueError, match=message):
|
with pytest.raises(ValueError, match=message):
|
||||||
camelot.read_pdf(filename, flavor='stream',
|
camelot.read_pdf(
|
||||||
table_areas=['10,20,30,40'], columns=['10,20,30,40', '10,20,30,40'])
|
filename,
|
||||||
|
flavor='stream',
|
||||||
|
table_areas=['10,20,30,40'],
|
||||||
|
columns=['10,20,30,40', '10,20,30,40']
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_image_warning():
|
def test_image_warning():
|
||||||
|
|
@ -47,7 +51,8 @@ def test_image_warning():
|
||||||
warnings.simplefilter('error')
|
warnings.simplefilter('error')
|
||||||
with pytest.raises(UserWarning) as e:
|
with pytest.raises(UserWarning) as e:
|
||||||
camelot.read_pdf(filename)
|
camelot.read_pdf(filename)
|
||||||
assert str(e.value) == 'page-1 is image-based, camelot only works on text-based pages.'
|
assert str(e.value) == 'page-1 is image-based, camelot only works ' \
|
||||||
|
'on text-based pages.'
|
||||||
|
|
||||||
|
|
||||||
def test_no_tables_found():
|
def test_no_tables_found():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue