Skip to content

Commit

Permalink
Add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Feb 13, 2020
1 parent f5e0661 commit 4e7dff5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/src/python/test_qgsauxiliarystorage.py
Expand Up @@ -403,6 +403,16 @@ def testCreateProperty(self):
afIndex = vl.fields().indexOf(afName)
self.assertEqual(index, afIndex)

# Create a buffer property and check if drawing is activated
f = vl.labeling().settings().format()
self.assertFalse(f.buffer().enabled())

key = QgsPalLayerSettings.BufferColor
index = QgsAuxiliaryLayer.createProperty(key, vl)

f = vl.labeling().settings().format()
self.assertTrue(f.buffer().enabled())

def testCreateField(self):
s = QgsAuxiliaryStorage()
self.assertTrue(s.isValid())
Expand Down

0 comments on commit 4e7dff5

Please sign in to comment.