Add some masks and set a higher threshold for comparing images
@ -180,7 +180,7 @@ class QgsServerTestBase(unittest.TestCase):
|
||||
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))
|
||||
|
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.9 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 24 KiB |
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_Highlight/WMS_GetPrint_Highlight_mask.png
vendored
Normal file
After Width: | Height: | Size: 76 KiB |
Before Width: | Height: | Size: 39 KiB After Width: | Height: | Size: 66 KiB |
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_SRS/WMS_GetPrint_SRS_mask.png
vendored
Normal file
After Width: | Height: | Size: 44 KiB |
BIN
tests/testdata/control_images/qgis_server/WMS_GetPrint_StyleCustom/WMS_GetPrint_StyleCustom_mask.png
vendored
Normal file
After Width: | Height: | Size: 230 KiB |