From b7bb2988e8fe43ef5ae18a8be7bc22236b91290b Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Tue, 13 Jun 2023 21:11:05 +0200 Subject: [PATCH] Fix test coverage of options class --- tests/test_core/test_core_options.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/test_core/test_core_options.py b/tests/test_core/test_core_options.py index 6c4a3472..dba4bdea 100644 --- a/tests/test_core/test_core_options.py +++ b/tests/test_core/test_core_options.py @@ -42,15 +42,17 @@ def testCoreOptions_LoadSave(monkeypatch, mockGUI, fncPath): # Write a test file optFile = metaDir / nwFiles.OPTS_FILE optFile.write_text(json.dumps({ - "GuiProjectSettings": { - "winWidth": 570, - "winHeight": 375, - "replaceColW": 130, - "statusColW": 130, - "importColW": 130 - }, - "MockGroup": { - "mockItem": None, + "novelWriter.guiOptions": { + "GuiProjectSettings": { + "winWidth": 570, + "winHeight": 375, + "replaceColW": 130, + "statusColW": 130, + "importColW": 130 + }, + "MockGroup": { + "mockItem": None, + }, }, }), encoding="utf-8")