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:
Sean Whitton 2016-09-15 08:55:31 -07:00 committed by jbarlow83
parent dbe880bc41
commit 7f08f15fc9

View File

@ -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)