mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-08-09 17:23:04 +00:00
16 lines
419 B
Python
16 lines
419 B
Python
# © 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/.
|
|
|
|
|
|
import pytest
|
|
|
|
from ocrmypdf.helpers import check_pdf
|
|
|
|
|
|
def test_pdf_error(resources):
|
|
assert check_pdf(resources / 'blank.pdf')
|
|
assert not check_pdf(__file__)
|