Fixed tests
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[Main]
|
[Main]
|
||||||
timestamp = 2020-06-09 23:05:17
|
timestamp = 2020-06-13 22:59:36
|
||||||
theme = default
|
theme = default
|
||||||
syntax = default_light
|
syntax = default_light
|
||||||
icons = typicons_colour_light
|
icons = typicons_colour_light
|
||||||
@@ -54,6 +54,7 @@ askbeforebackup = True
|
|||||||
[State]
|
[State]
|
||||||
showrefpanel = True
|
showrefpanel = True
|
||||||
viewcomments = True
|
viewcomments = True
|
||||||
|
viewsynopsis = True
|
||||||
|
|
||||||
[Path]
|
[Path]
|
||||||
lastpath =
|
lastpath =
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ def testConfigSetTreeColWidths(nwTemp,nwRef):
|
|||||||
assert theConf.setTreeColWidths([0, 0, 0])
|
assert theConf.setTreeColWidths([0, 0, 0])
|
||||||
assert theConf.confChanged
|
assert theConf.confChanged
|
||||||
assert theConf.setTreeColWidths([120, 30, 50])
|
assert theConf.setTreeColWidths([120, 30, 50])
|
||||||
|
assert theConf.setProjColWidths([140, 55, 140])
|
||||||
assert theConf.saveConfig()
|
assert theConf.saveConfig()
|
||||||
assert cmpFiles(tmpConf, refConf, [2])
|
assert cmpFiles(tmpConf, refConf, [2])
|
||||||
assert not theConf.confChanged
|
assert not theConf.confChanged
|
||||||
@@ -82,6 +83,8 @@ def testConfigSetPanePos(nwTemp,nwRef):
|
|||||||
assert theConf.confChanged
|
assert theConf.confChanged
|
||||||
assert theConf.setMainPanePos([300, 800])
|
assert theConf.setMainPanePos([300, 800])
|
||||||
assert theConf.setDocPanePos([400, 400])
|
assert theConf.setDocPanePos([400, 400])
|
||||||
|
assert theConf.setViewPanePos([500, 150])
|
||||||
|
assert theConf.setOutlinePanePos([500, 150])
|
||||||
assert theConf.saveConfig()
|
assert theConf.saveConfig()
|
||||||
assert cmpFiles(tmpConf, refConf, [2])
|
assert cmpFiles(tmpConf, refConf, [2])
|
||||||
assert not theConf.confChanged
|
assert not theConf.confChanged
|
||||||
@@ -92,8 +95,6 @@ def testConfigFlags(nwTemp,nwRef):
|
|||||||
refConf = path.join(nwRef, "novelwriter.conf")
|
refConf = path.join(nwRef, "novelwriter.conf")
|
||||||
assert not theConf.setShowRefPanel(False)
|
assert not theConf.setShowRefPanel(False)
|
||||||
assert theConf.setShowRefPanel(True)
|
assert theConf.setShowRefPanel(True)
|
||||||
assert not theConf.setViewComments(False)
|
|
||||||
assert theConf.setViewComments(True)
|
|
||||||
assert theConf.confChanged
|
assert theConf.confChanged
|
||||||
assert theConf.saveConfig()
|
assert theConf.saveConfig()
|
||||||
assert cmpFiles(tmpConf, refConf, [2])
|
assert cmpFiles(tmpConf, refConf, [2])
|
||||||
|
|||||||
Reference in New Issue
Block a user