OCRmyPDF/tests/test_check_pdf.py

12 lines
272 B
Python
Raw Normal View History

2022-07-28 01:06:46 -07:00
# SPDX-FileCopyrightText: 2022 James R. Barlow
# SPDX-License-Identifier: MPL-2.0
2018-11-02 00:37:33 -07:00
2022-07-23 00:39:24 -07:00
from __future__ import annotations
from ocrmypdf.helpers import check_pdf
2018-11-02 00:37:33 -07:00
2018-12-30 01:27:49 -08:00
def test_pdf_error(resources):
assert check_pdf(resources / 'blank.pdf')
assert not check_pdf(__file__)