Skip to content

Commit a8ca3b2

Browse files
committedJun 9, 2017
Port test to new API
1 parent e413463 commit a8ca3b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/src/python/test_qgspointdisplacementrenderer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def _setProperties(self, r):
8888
r.setLabelAttributeName('name')
8989
f = QgsFontUtils.getStandardTestFont('Bold Oblique', 14)
9090
r.setLabelFont(f)
91-
r.setMaxLabelScaleDenominator(50000)
91+
r.setMinimumLabelScale(50000)
9292
r.setLabelColor(QColor(255, 0, 0))
9393
r.setTolerance(5)
9494
r.setToleranceUnit(QgsUnitTypes.RenderMapUnits)
@@ -109,7 +109,7 @@ def _checkProperties(self, r):
109109
self.assertEqual(r.labelAttributeName(), 'name')
110110
f = QgsFontUtils.getStandardTestFont('Bold Oblique', 14)
111111
self.assertEqual(r.labelFont().styleName(), f.styleName())
112-
self.assertEqual(r.maxLabelScaleDenominator(), 50000)
112+
self.assertEqual(r.minimumLabelScale(), 50000)
113113
self.assertEqual(r.labelColor(), QColor(255, 0, 0))
114114
self.assertEqual(r.tolerance(), 5)
115115
self.assertEqual(r.toleranceUnit(), QgsUnitTypes.RenderMapUnits)

0 commit comments

Comments
 (0)
Please sign in to comment.