Make the item class non-dynamic, and cache formatting vars in editor

This commit is contained in:
Veronica Berglyd Olsen
2022-11-11 17:09:03 +01:00
parent b05028e3c9
commit 612034f6be
5 changed files with 80 additions and 57 deletions
+3 -3
View File
@@ -133,11 +133,11 @@ def testCoreItem_Setters(mockGUI, mockRnd, fncPath):
theItem.setExpanded("What?")
assert theItem.isExpanded is False
theItem.setExpanded("True")
assert theItem.isExpanded is True
assert theItem.isExpanded is False
theItem.setExpanded(True)
assert theItem.isExpanded is True
# Exported
# Active
theItem.setActive(8)
assert theItem.isActive is False
theItem.setActive(None)
@@ -147,7 +147,7 @@ def testCoreItem_Setters(mockGUI, mockRnd, fncPath):
theItem.setActive("What?")
assert theItem.isActive is False
theItem.setActive("True")
assert theItem.isActive is True
assert theItem.isActive is False
theItem.setActive(True)
assert theItem.isActive is True