Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
logilab-mtconverter
Commits
34d8956ca42b
Commit
228f27f7
authored
Apr 06, 2022
by
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
Changes
1
Pipelines
28
Hide whitespace changes
Inline
Side-by-side
test/test_transforms.py
View file @
34d8956c
...
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment