Skip to content

Commit

Permalink
workaround test issue on Linux (due to ImageMagik security settings).
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed Nov 2, 2018
1 parent 6178c64 commit 330dc82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions abilian/services/conversion/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import absolute_import, division, print_function, \
unicode_literals

import sys
import tempfile
from pathlib import Path
from warnings import warn
Expand Down Expand Up @@ -75,6 +76,7 @@ def test_word_to_pdf(converter):
assert "application/pdf" == mime_sniffer.from_buffer(pdf)


@mark.skipif(sys.platform == 'linux2', reason="may bug due to ImagMagik settings")
def test_image_to_pdf(converter):
blob = read_file("picture.jpg")
pdf = converter.to_pdf("", blob, "image/jpeg")
Expand Down

0 comments on commit 330dc82

Please sign in to comment.