Commit de9a0411 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: small update for ImageMagick 7.

parent 8d9c6fbb
...@@ -43,7 +43,7 @@ from Products.ERP5.Document.Document import ConversionError ...@@ -43,7 +43,7 @@ from Products.ERP5.Document.Document import ConversionError
from PIL import Image from PIL import Image
LANGUAGE_LIST = ('en', 'fr', 'de', 'bg',) LANGUAGE_LIST = ('en', 'fr', 'de', 'bg',)
IMAGE_COMPARE_TOLERANCE = 800 IMAGE_COMPARE_TOLERANCE = 850
def makeFilePath(name): def makeFilePath(name):
......
...@@ -2275,7 +2275,7 @@ return 1 ...@@ -2275,7 +2275,7 @@ return 1
image_document_image_size_no_quality,image_document_file_size_no_quality = self.getURLSizeList(url, **convert_kw) image_document_image_size_no_quality,image_document_file_size_no_quality = self.getURLSizeList(url, **convert_kw)
# check file sizes # check file sizes
self.assertTrue(image_document_file_size_100p >= image_document_file_size_no_quality and \ self.assertTrue(image_document_file_size_100p >= image_document_file_size_no_quality and \
image_document_file_size_no_quality image_document_file_size_5p, image_document_file_size_no_quality >= image_document_file_size_5p,
"%s should be more then %s and %s should be more them %s" % \ "%s should be more then %s and %s should be more them %s" % \
(image_document_file_size_100p, (image_document_file_size_100p,
image_document_file_size_no_quality, image_document_file_size_no_quality,
......
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