OCRmyPDF/tests/test_check_pdf.py

18 lines
455 B
Python
Raw Normal View History

2018-11-02 00:37:33 -07:00
# © 2018 James R. Barlow: github.com/jbarlow83
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
2018-11-02 00:37:33 -07:00
2022-07-23 00:39:24 -07:00
from __future__ import annotations
2018-11-02 00:37:33 -07:00
import pytest
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__)