Skip to content
Permalink
Browse files

Fix test

  • Loading branch information
nyalldawson committed May 3, 2020
1 parent 6ec369e commit 4369ffb3cc14bf5967c4fd0c0a4f91ac15f761f2
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/python/test_qgspallabeling_placement.py
@@ -804,7 +804,7 @@ def test_small_polygon_large_label_allow_outside(self):
self.layer = TestQgsPalLabeling.loadFeatureLayer('polygon_small')
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
self.lyr.placement = QgsPalLayerSettings.OverPoint
self.lyr.setPolygonPlacementFlags(QgsLabeling.PolygonPlacementFlags(QgsLabeling.PolygonPlacementFlag.AllowPlacementOutsideOfPolygon | QgsLabeling.PolygonPlacementFlag.AllowPlacementInsideOfPolygon))
self.lyr.setPolygonPlacementFlags(QgsLabeling.AllowPlacementOutsideOfPolygon | QgsLabeling.AllowPlacementInsideOfPolygon)
self.checkTest()
self.removeMapLayer(self.layer)
self.layer = None
@@ -815,7 +815,7 @@ def test_small_polygon_small_label_inside_and_outside(self):
self.layer = TestQgsPalLabeling.loadFeatureLayer('polygon_small')
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
self.lyr.placement = QgsPalLayerSettings.OverPoint
self.lyr.setPolygonPlacementFlags(QgsLabeling.PolygonPlacementFlags(QgsLabeling.PolygonPlacementFlag.AllowPlacementOutsideOfPolygon | QgsLabeling.PolygonPlacementFlag.AllowPlacementInsideOfPolygon))
self.lyr.setPolygonPlacementFlags(QgsLabeling.AllowPlacementOutsideOfPolygon | QgsLabeling.AllowPlacementInsideOfPolygon)
f = self.lyr.format()
f.setSize(8)
self.lyr.setFormat(f)
@@ -829,7 +829,7 @@ def test_small_polygon_small_label_outside_only(self):
self.layer = TestQgsPalLabeling.loadFeatureLayer('polygon_small')
self._TestMapSettings = self.cloneMapSettings(self._MapSettings)
self.lyr.placement = QgsPalLayerSettings.OverPoint
self.lyr.setPolygonPlacementFlags(QgsLabeling.PolygonPlacementFlags(QgsLabeling.PolygonPlacementFlag.AllowPlacementOutsideOfPolygon))
self.lyr.setPolygonPlacementFlags(QgsLabeling.AllowPlacementOutsideOfPolygon)
f = self.lyr.format()
f.setSize(8)
self.lyr.setFormat(f)

0 comments on commit 4369ffb

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