Fix test coverage of options class

This commit is contained in:
Veronica Berglyd Olsen
2023-06-13 21:11:05 +02:00
parent f33ba03a2f
commit b7bb2988e8
+2
View File
@@ -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