Skip to content
Permalink
Browse files

Port test to new API

  • Loading branch information
nyalldawson committed Jun 9, 2017
1 parent e413463 commit a8ca3b28ae175cd29bdaef6ad004a4f6278de0cb
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/src/python/test_qgspointdisplacementrenderer.py
@@ -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)
@@ -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)

0 comments on commit a8ca3b2

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