Fix test coverage of options class
This commit is contained in:
@@ -42,6 +42,7 @@ def testCoreOptions_LoadSave(monkeypatch, mockGUI, fncPath):
|
|||||||
# Write a test file
|
# Write a test file
|
||||||
optFile = metaDir / nwFiles.OPTS_FILE
|
optFile = metaDir / nwFiles.OPTS_FILE
|
||||||
optFile.write_text(json.dumps({
|
optFile.write_text(json.dumps({
|
||||||
|
"novelWriter.guiOptions": {
|
||||||
"GuiProjectSettings": {
|
"GuiProjectSettings": {
|
||||||
"winWidth": 570,
|
"winWidth": 570,
|
||||||
"winHeight": 375,
|
"winHeight": 375,
|
||||||
@@ -52,6 +53,7 @@ def testCoreOptions_LoadSave(monkeypatch, mockGUI, fncPath):
|
|||||||
"MockGroup": {
|
"MockGroup": {
|
||||||
"mockItem": None,
|
"mockItem": None,
|
||||||
},
|
},
|
||||||
|
},
|
||||||
}), encoding="utf-8")
|
}), encoding="utf-8")
|
||||||
|
|
||||||
# Load and save with no path set
|
# Load and save with no path set
|
||||||
|
|||||||
Reference in New Issue
Block a user