mirror of
https://github.com/ocrmypdf/OCRmyPDF.git
synced 2025-07-16 21:41:10 +00:00
12 lines
272 B
Python
12 lines
272 B
Python
# SPDX-FileCopyrightText: 2022 James R. Barlow
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
from __future__ import annotations
|
|
|
|
from ocrmypdf.helpers import check_pdf
|
|
|
|
|
|
def test_pdf_error(resources):
|
|
assert check_pdf(resources / 'blank.pdf')
|
|
assert not check_pdf(__file__)
|