Commit 228f27f7 authored by Laurent Peuch's avatar Laurent Peuch
Browse files

fix(test): check that the needed pdftotext binary is correctly available

parent fac6f2d75efe
Pipeline #133712 passed with stage
in 1 minute and 55 seconds
......@@ -130,6 +130,15 @@ r2MAoIO1DSsuM23SzgmqubGJEZuSRWhR
self.skipTest("pdflatex not installed")
else:
raise
try:
subprocess.check_call(
["pdftotext", "--help"],
cwd=osp.abspath(DATAPATH),
stdout=open(os.devnull, "w"),
)
except OSError as exc:
raise Exception(f"pdftotext not installed: {exc}")
data = TransformData(
open(osp.join(DATAPATH, "hello.pdf"), "rb").read(),
"application/pdf",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment