Commit b8527db0 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

test: small update for ImageMagick 7.

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