def test_partials_labels_deactivate(self):
     pal = QgsPalLabeling()
     # Disable partials labels
     pal.setShowingPartialsLabels(False)
     self.assertFalse(pal.isShowingPartialsLabels())
 def test_partials_labels_activate(self):
     pal = QgsPalLabeling()
     # Enable partials labels
     pal.setShowingPartialsLabels(True)
     self.assertTrue(pal.isShowingPartialsLabels())
 def test_default_partials_labels_enabled(self):
     # Verify ShowingPartialsLabels is enabled for PAL by default
     pal = QgsPalLabeling()
     self.assertTrue(pal.isShowingPartialsLabels())
示例#4
0
 def test_partials_labels_deactivate(self):
     pal = QgsPalLabeling()
     # Disable partials labels
     pal.setShowingPartialsLabels(False)
     self.assertFalse(pal.isShowingPartialsLabels())
示例#5
0
 def test_partials_labels_activate(self):
     pal = QgsPalLabeling()
     # Enable partials labels
     pal.setShowingPartialsLabels(True)
     self.assertTrue(pal.isShowingPartialsLabels())
示例#6
0
 def test_default_partials_labels_enabled(self):
     # Verify ShowingPartialsLabels is enabled for PAL by default
     pal = QgsPalLabeling()
     self.assertTrue(pal.isShowingPartialsLabels())