mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-12-30 00:31:59 +00:00
pytest skipif for milk.pdf test (#95)
Skip the test if the fair use restricted milk.pdf is not present.
This commit is contained in:
parent
dbe880bc41
commit
7f08f15fc9
@ -634,5 +634,7 @@ def test_masks(spoof_tesseract_noop):
|
||||
check_ocrmypdf('masks.pdf', 'test_masks.pdf', env=spoof_tesseract_noop)
|
||||
|
||||
|
||||
@pytest.mark.skipif(not os.path.isfile(_infile('milk.pdf')),
|
||||
reason="fair use restricted test resource does not exist")
|
||||
def test_linearized_pdf_and_indirect_object(spoof_tesseract_noop):
|
||||
check_ocrmypdf('milk.pdf', 'test_milk.pdf', env=spoof_tesseract_noop)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user