diff --git a/tests/__init__.py b/tests/__init__.py index 2733a0f..ff9d57d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -14,7 +14,8 @@ test_docs_dir = Path(__file__).parent.joinpath(SAMPLE_DIRECTORY) test_docs = [ p for p in test_docs_dir.rglob("*") - if p.is_file() and not p.name.endswith(SAFE_EXTENSION) + if p.is_file() + and not (p.name.endswith(SAFE_EXTENSION) or p.name.startswith("sample_bad")) ] # Pytest parameter decorators diff --git a/tests/test_docs/sample_bad_pdf.pdf b/tests/test_docs/sample_bad_pdf.pdf new file mode 100644 index 0000000..0e99b63 --- /dev/null +++ b/tests/test_docs/sample_bad_pdf.pdf @@ -0,0 +1 @@ +badpdf