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())
Esempio n. 4
0
 def test_partials_labels_deactivate(self):
     pal = QgsPalLabeling()
     # Disable partials labels
     pal.setShowingPartialsLabels(False)
     self.assertFalse(pal.isShowingPartialsLabels())
Esempio n. 5
0
 def test_partials_labels_activate(self):
     pal = QgsPalLabeling()
     # Enable partials labels
     pal.setShowingPartialsLabels(True)
     self.assertTrue(pal.isShowingPartialsLabels())
Esempio n. 6
0
 def test_default_partials_labels_enabled(self):
     # Verify ShowingPartialsLabels is enabled for PAL by default
     pal = QgsPalLabeling()
     self.assertTrue(pal.isShowingPartialsLabels())