From de6fd6566432e9466facfccd6e97a4476a94833c Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Fri, 26 Jan 2024 22:45:28 +0100 Subject: [PATCH] Update sample project and tests --- sample/nwProject.nwx | 5 ++--- tests/test_core/test_core_project.py | 4 ---- tests/test_core/test_core_projectxml.py | 6 ------ tests/test_gui/test_gui_guimain.py | 2 -- 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/sample/nwProject.nwx b/sample/nwProject.nwx index af18a5a6..8d02b22d 100644 --- a/sample/nwProject.nwx +++ b/sample/nwProject.nwx @@ -1,8 +1,7 @@ - - + + Sample Project - Sample Project Jane Smith diff --git a/tests/test_core/test_core_project.py b/tests/test_core/test_core_project.py index 538e179b..fdad6b77 100644 --- a/tests/test_core/test_core_project.py +++ b/tests/test_core/test_core_project.py @@ -482,10 +482,6 @@ def testCoreProject_Methods(monkeypatch, mockGUI, fncPath, mockRnd): project.data.setName(" A Name ") assert project.data.name == "A Name" - # Project Title - project.data.setTitle(" A Title ") - assert project.data.title == "A Title" - # Project Author project.data.setAuthor(" Jane\tDoe ") assert project.data.author == "Jane Doe" diff --git a/tests/test_core/test_core_projectxml.py b/tests/test_core/test_core_projectxml.py index 06dad380..19624e39 100644 --- a/tests/test_core/test_core_projectxml.py +++ b/tests/test_core/test_core_projectxml.py @@ -148,7 +148,6 @@ def testCoreProjectXML_ReadCurrent(monkeypatch, tstPaths, fncPath): # Check loaded data assert data.name == "Sample Project" - assert data.title == "Sample Project" assert data.author == "Jane Smith" assert data.saveCount == 5 assert data.autoCount == 10 @@ -267,7 +266,6 @@ def testCoreProjectXML_ReadLegacy10(tstPaths, fncPath, mockRnd): # Check loaded data assert data.name == "Sample Project" - assert data.title == "Sample Project" assert data.author == "Jay Doh" # Only last author is preserved assert data.saveCount == 0 # Doesn't exist in 1.0 assert data.autoCount == 0 # Doesn't exist in 1.0 @@ -402,7 +400,6 @@ def testCoreProjectXML_ReadLegacy11(tstPaths, fncPath, mockRnd): # Check loaded data assert data.name == "Sample Project" - assert data.title == "Sample Project" assert data.author == "Jay Doh" # Only last author is preserved assert data.saveCount == 5 assert data.autoCount == 10 @@ -537,7 +534,6 @@ def testCoreProjectXML_ReadLegacy12(tstPaths, fncPath, mockRnd): # Check loaded data assert data.name == "Sample Project" - assert data.title == "Sample Project" assert data.author == "Jay Doh" # Only last author is preserved assert data.saveCount == 5 assert data.autoCount == 10 @@ -675,7 +671,6 @@ def testCoreProjectXML_ReadLegacy13(tstPaths, fncPath, mockRnd): # Check loaded data assert data.name == "Sample Project" - assert data.title == "Sample Project" assert data.author == "Jay Doh" # Only last author is preserved assert data.saveCount == 5 assert data.autoCount == 10 @@ -813,7 +808,6 @@ def testCoreProjectXML_ReadLegacy14(tstPaths, fncPath, mockRnd): # Check loaded data assert data.name == "Sample Project" - assert data.title == "Sample Project" assert data.author == "Jay Doh" # Only last author is preserved assert data.saveCount == 5 assert data.autoCount == 10 diff --git a/tests/test_gui/test_gui_guimain.py b/tests/test_gui/test_gui_guimain.py index cb06a470..5c15ed4a 100644 --- a/tests/test_gui/test_gui_guimain.py +++ b/tests/test_gui/test_gui_guimain.py @@ -200,7 +200,6 @@ def testGuiMain_Editing(qtbot, monkeypatch, nwGUI, projPath, tstPaths, mockRnd): assert len(SHARED.project.tree._roots) == 0 assert SHARED.project.tree.trashRoot is None assert SHARED.project.data.name == "" - assert SHARED.project.data.title == "" assert SHARED.project.data.author == "" assert SHARED.project.data.spellCheck is False @@ -220,7 +219,6 @@ def testGuiMain_Editing(qtbot, monkeypatch, nwGUI, projPath, tstPaths, mockRnd): assert len(SHARED.project.tree._roots) == 4 assert SHARED.project.tree.trashRoot is None assert SHARED.project.data.name == "New Project" - assert SHARED.project.data.title == "New Novel" assert SHARED.project.data.author == "Jane Doe" assert SHARED.project.data.spellCheck is False