Add a bad PDF file in our test samples

Add a bad PDF file in our test samples, which we can use for testing
purposes.
This commit is contained in:
Alex Pyrgiotis 2022-11-22 01:04:46 +02:00
parent 57fdf06f0f
commit cc4e39b3fc
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -0,0 +1 @@
badpdf