mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
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:
parent
57fdf06f0f
commit
cc4e39b3fc
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
1
tests/test_docs/sample_bad_pdf.pdf
Normal file
1
tests/test_docs/sample_bad_pdf.pdf
Normal file
|
@ -0,0 +1 @@
|
|||
badpdf
|
Loading…
Reference in a new issue