Delint some tests
This commit is contained in:
@@ -25,10 +25,9 @@ import pdfminer.encodingdb
|
||||
import pdfminer.pdfdevice
|
||||
import pdfminer.pdfinterp
|
||||
from pdfminer.converter import PDFLayoutAnalyzer
|
||||
from pdfminer.glyphlist import glyphname2unicode
|
||||
from pdfminer.layout import LAParams, LTChar, LTPage, LTTextBox
|
||||
from pdfminer.pdfdocument import PDFTextExtractionNotAllowed
|
||||
from pdfminer.pdffont import PDFFont, PDFSimpleFont, PDFUnicodeNotDefined
|
||||
from pdfminer.pdffont import PDFSimpleFont, PDFUnicodeNotDefined
|
||||
from pdfminer.pdfpage import PDFPage
|
||||
from pdfminer.utils import bbox2str, matrix2str
|
||||
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with OCRmyPDF. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import os
|
||||
from unittest.mock import patch
|
||||
|
||||
import pikepdf
|
||||
|
||||
@@ -41,7 +41,6 @@ except ImportError:
|
||||
|
||||
# pytest.helpers is dynamic
|
||||
# pylint: disable=no-member
|
||||
# pylint: disable=w0612
|
||||
|
||||
pytestmark = pytest.mark.filterwarnings('ignore:.*XMLParser.*:DeprecationWarning')
|
||||
|
||||
@@ -77,7 +76,7 @@ def test_override_metadata(spoof_tesseract_noop, output_type, resources, outpdf)
|
||||
german = 'Du siehst den Wald vor lauter Bäumen nicht.'
|
||||
chinese = '孔子'
|
||||
|
||||
p, out, err = run_ocrmypdf(
|
||||
p, _out, err = run_ocrmypdf(
|
||||
input_file,
|
||||
outpdf,
|
||||
'--title',
|
||||
@@ -113,7 +112,7 @@ def test_high_unicode(spoof_tesseract_noop, resources, no_outpdf):
|
||||
input_file = resources / 'c02-22.pdf'
|
||||
high_unicode = 'U+1030C is: 𐌌'
|
||||
|
||||
p, out, err = run_ocrmypdf(
|
||||
p, _out, err = run_ocrmypdf(
|
||||
input_file,
|
||||
no_outpdf,
|
||||
'--subject',
|
||||
@@ -275,7 +274,7 @@ def test_srgb_in_unicode_path(tmp_path):
|
||||
|
||||
|
||||
def test_kodak_toc(resources, outpdf, spoof_tesseract_noop):
|
||||
output = check_ocrmypdf(
|
||||
_output = check_ocrmypdf(
|
||||
resources / 'kcs.pdf', outpdf, '--output-type', 'pdf', env=spoof_tesseract_noop
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user