Update tests and add more debug output

This commit is contained in:
Veronica Berglyd Olsen
2025-10-26 02:40:50 +01:00
parent e0bd7d82fb
commit a703e0bb7d
14 changed files with 67 additions and 11 deletions
@@ -72,6 +72,9 @@ def testToolManuscript_Init(monkeypatch, qtbot, nwGUI, projPath, mockRnd):
manus.btnPreview.click()
assert manus.docPreview.toPlainText().strip() == allText
# Trigger a theme update, which is only a visual refresh, but it shouldn't crash
manus.updateTheme()
nwGUI.closeProject() # This should auto-close the manuscript tool
# qtbot.stop()
@@ -148,6 +151,9 @@ def testToolManuscript_Builds(qtbot, nwGUI, projPath):
assert new is not None
assert new.name == "Test Build 2"
# Trigger a theme update, which should propagate to settings
manus.updateTheme()
# Close the dialog should also close the child dialogs
manus.btnClose.click()
if isinstance(bSettings, GuiBuildSettings):