Update tests

This commit is contained in:
Veronica Berglyd Olsen
2023-11-08 18:06:19 +01:00
parent 711766cf52
commit c88fbf629d
3 changed files with 5 additions and 1 deletions
@@ -68,6 +68,8 @@ useridletime = 300
[State] [State]
showrefpanel = True showrefpanel = True
showedittoolbar = False
useshortcodes = False
viewcomments = True viewcomments = True
viewsynopsis = True viewsynopsis = True
searchcase = False searchcase = False
@@ -68,6 +68,8 @@ useridletime = 300
[State] [State]
showrefpanel = True showrefpanel = True
showedittoolbar = False
useshortcodes = False
viewcomments = True viewcomments = True
viewsynopsis = True viewsynopsis = True
searchcase = False searchcase = False
+1 -1
View File
@@ -140,7 +140,7 @@ def testCoreOptions_SetGet(mockGUI):
assert theOpts.getFloat("GuiProjectDetails", "mockItem", None) is None assert theOpts.getFloat("GuiProjectDetails", "mockItem", None) is None
assert theOpts.getBool("GuiProjectDetails", "clearDouble", None) is True assert theOpts.getBool("GuiProjectDetails", "clearDouble", None) is True
assert theOpts.getBool("GuiProjectDetails", "mockItem", None) is None assert theOpts.getBool("GuiProjectDetails", "mockItem", None) is None
assert theOpts.getEnum("GuiNovelView", "lastCol", NovelTreeColumn, None) == nwColHidden assert theOpts.getEnum("GuiNovelView", "lastCol", NovelTreeColumn, nwColHidden) == nwColHidden
# Get from non-existent groups # Get from non-existent groups
assert theOpts.getValue("SomeGroup", "mockItem", None) is None assert theOpts.getValue("SomeGroup", "mockItem", None) is None