From c1c935877881f580e1dd7472bf2ba82f4bad23b0 Mon Sep 17 00:00:00 2001 From: Frh Date: Sun, 19 Apr 2020 17:35:19 -0700 Subject: [PATCH] More linting --- tests/test_errors.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/test_errors.py b/tests/test_errors.py index fd8b402..321cd86 100755 --- a/tests/test_errors.py +++ b/tests/test_errors.py @@ -37,8 +37,12 @@ def test_stream_equal_length(): message = ("Length of table_areas and columns" " should be equal") with pytest.raises(ValueError, match=message): - camelot.read_pdf(filename, flavor='stream', - table_areas=['10,20,30,40'], columns=['10,20,30,40', '10,20,30,40']) + camelot.read_pdf( + filename, + flavor='stream', + table_areas=['10,20,30,40'], + columns=['10,20,30,40', '10,20,30,40'] + ) def test_image_warning(): @@ -47,7 +51,8 @@ def test_image_warning(): warnings.simplefilter('error') with pytest.raises(UserWarning) as e: 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():