Fix tests

This commit is contained in:
Veronica Berglyd Olsen
2025-02-02 17:27:08 +01:00
parent 1c6625ec2b
commit 868af2d5f3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -45,8 +45,8 @@ def testGuiMainMenu_Slots(qtbot, monkeypatch, nwGUI, projPath):
with monkeypatch.context() as mp:
openUrl = MagicMock()
mp.setattr(QDesktopServices, "openUrl", openUrl)
CONFIG.pdfDocs = projPath / "manual.pdf"
CONFIG.pdfDocs.touch()
CONFIG._manuals = {"manual": projPath / "manual.pdf"}
CONFIG._manuals["manual"].touch()
nwGUI.mainMenu._openUserManualFile()
assert openUrl.called is True
assert "manual.pdf" in openUrl.call_args[0][0].url()