aboutsummaryrefslogtreecommitdiffstats
path: root/python/tests
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-29 15:21:57 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-29 15:21:57 -0700
commitae37c8e32f1289816b69cd5a502a6bc5fd862414 (patch)
tree8daad96a990c5a625e80587d9a2d6e0fdcc65e1b /python/tests
parente70f5bcaafe370da12cbfea4133b835f40614b44 (diff)
downloadsandcrawler-ae37c8e32f1289816b69cd5a502a6bc5fd862414.tar.gz
sandcrawler-ae37c8e32f1289816b69cd5a502a6bc5fd862414.zip
improve test running and config
Diffstat (limited to 'python/tests')
-rw-r--r--python/tests/test_pdfextract.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tests/test_pdfextract.py b/python/tests/test_pdfextract.py
index ed93341..64e3137 100644
--- a/python/tests/test_pdfextract.py
+++ b/python/tests/test_pdfextract.py
@@ -2,6 +2,7 @@
import pytest
import struct
import responses
+import poppler
from sandcrawler import PdfExtractWorker, PdfExtractBlobWorker, CdxLinePusher, BlackholeSink, WaybackClient
from sandcrawler.pdfextract import process_pdf
@@ -20,6 +21,7 @@ def test_process_fake_pdf():
resp = process_pdf(pdf_bytes)
assert resp.status == 'not-pdf'
+@pytest.mark.skipif(poppler.__version__ == '0.2.1', reason="unsupported version of poppler")
def test_process_dummy_pdf():
with open('tests/files/dummy.pdf', 'rb') as f:
pdf_bytes = f.read()