Skip to content

Commit

Permalink
Port test to new API
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 9, 2017
1 parent e413463 commit a8ca3b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_qgspointdisplacementrenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def _setProperties(self, r):
r.setLabelAttributeName('name')
f = QgsFontUtils.getStandardTestFont('Bold Oblique', 14)
r.setLabelFont(f)
r.setMaxLabelScaleDenominator(50000)
r.setMinimumLabelScale(50000)
r.setLabelColor(QColor(255, 0, 0))
r.setTolerance(5)
r.setToleranceUnit(QgsUnitTypes.RenderMapUnits)
Expand All @@ -109,7 +109,7 @@ def _checkProperties(self, r):
self.assertEqual(r.labelAttributeName(), 'name')
f = QgsFontUtils.getStandardTestFont('Bold Oblique', 14)
self.assertEqual(r.labelFont().styleName(), f.styleName())
self.assertEqual(r.maxLabelScaleDenominator(), 50000)
self.assertEqual(r.minimumLabelScale(), 50000)
self.assertEqual(r.labelColor(), QColor(255, 0, 0))
self.assertEqual(r.tolerance(), 5)
self.assertEqual(r.toleranceUnit(), QgsUnitTypes.RenderMapUnits)
Expand Down

0 comments on commit a8ca3b2

Please sign in to comment.