Skip to content
Permalink
Browse files

Add some masks and set a higher threshold for comparing images

  • Loading branch information
pblottiere committed Nov 22, 2017
1 parent 1c81c42 commit e29f605bb351f82cfb883d08ac3bb5c668ae5bed
@@ -180,7 +180,7 @@ def _img_diff(self, image, control_image, max_diff, max_size_diff=QSize()):
control.setSizeTolerance(max_size_diff.width(), max_size_diff.height())
return control.compareImages(control_image, max_diff), control.report()

def _img_diff_error(self, response, headers, image, max_diff=10, max_size_diff=QSize()):
def _img_diff_error(self, response, headers, image, max_diff=100, max_size_diff=QSize()):
self.assertEqual(
headers.get("Content-Type"), "image/png",
"Content type is wrong: %s\n%s" % (headers.get("Content-Type"), response))
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit e29f605

Please sign in to comment.
You can’t perform that action at this time.