Skip to content

Commit

Permalink
Test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 16, 2020
1 parent 33a9f4e commit faf389b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgscolorramplegendnode.py
Expand Up @@ -19,7 +19,7 @@
QgsColorRampLegendNode,
QgsLayerTreeLayer,
QgsVectorLayer,
QgsRenderChecker,
QgsMultiRenderChecker,
QgsFontUtils,
QgsLegendSettings,
QgsLegendStyle,
Expand Down Expand Up @@ -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)
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit faf389b

Please sign in to comment.