Skip to content
Permalink
Browse files

Test updates

  • Loading branch information
nyalldawson committed Dec 16, 2020
1 parent 33a9f4e commit faf389bde5399f5e6bb317e4b7fe38ea9570ded3
@@ -19,7 +19,7 @@
QgsColorRampLegendNode,
QgsLayerTreeLayer,
QgsVectorLayer,
QgsRenderChecker,
QgsMultiRenderChecker,
QgsFontUtils,
QgsLegendSettings,
QgsLegendStyle,
@@ -141,7 +141,7 @@ def imageCheck(self, name, reference_image, image, size_tolerance=0):
temp_dir = QDir.tempPath() + '/'
file_name = temp_dir + name + ".png"
image.save(file_name, "PNG")
checker = QgsRenderChecker()
checker = QgsMultiRenderChecker()
checker.setControlPathPrefix("color_ramp_legend_node")
checker.setControlName("expected_" + reference_image)
checker.setRenderedImage(file_name)
Binary file not shown.
Binary file not shown.

0 comments on commit faf389b

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