Navigation Menu

Skip to content

Commit

Permalink
improve settings tree node test
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Jan 24, 2023
1 parent fb49e6e commit cb781d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/python/test_qgssettingstreenode.py
Expand Up @@ -122,8 +122,11 @@ def test_registration(self):
l1 = proot.createChildElement("level-1")
s1 = QgsSettingsEntryString("my-setting-1", l1)
l2 = l1.createChildElement("level-2")
self.assertEqual(len(l2.childrenSettings()), 0)
s2 = QgsSettingsEntryString("my-setting-2", l2)
self.assertEqual(len(l2.childrenSettings()), 1)
l2.unregisterChildSetting(s2)
self.assertEqual(len(l2.childrenSettings()), 0)
QgsSettings.unregisterPluginTreeElement(self.pluginName)

def test_duplicated_key(self):
Expand Down

0 comments on commit cb781d8

Please sign in to comment.