Reduce the list of tag classes in outline view when they are not used

This commit is contained in:
Veronica Berglyd Olsen committed 2022-05-22 21:00:49 +02:00
1 parent eb66b2c175
commit 1f66ed3e3b
5 files changed
+58 -4

No files matched your search

+5
View File
@@ -149,6 +149,11 @@ def testCoreTree_BuildTree(mockGUI, mockItems):
assert theTree.isTrash("a000000000003") is True
assert theTree.isRoot("a000000000002") is True
# Check that we have the root classes
assert theTree.rootClasses() == {
nwItemClass.NOVEL, nwItemClass.CHARACTER, nwItemClass.ARCHIVE, nwItemClass.TRASH
}
# Check the isTrash function
assert theTree.isTrash("0000000000000") is True # Doesn't exist
assert theTree.isTrash("a000000000003") is True # This the trash folder