Skip to content

Commit

Permalink
Use the direct insert call
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Jun 10, 2024
1 parent eed4721 commit 8a9b038
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_tools/test_tools_lipsum.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from PyQt5.QtWidgets import QAction

from novelwriter import SHARED
from novelwriter.enum import nwDocInsert
from novelwriter.tools.lipsum import GuiLipsum

from tests.tools import C, buildTestProject
Expand Down Expand Up @@ -63,7 +64,7 @@ def testToolLipsum_Main(qtbot, monkeypatch, nwGUI, projPath, mockRnd):
mp.setattr(GuiLipsum, "exec", lambda *a: None)
mp.setattr(GuiLipsum, "lipsumText", "FooBar")
with qtbot.waitSignal(nwGUI.docEditor.textChanged):
nwGUI.mainMenu.aLipsumText.activate(QAction.Trigger)
nwGUI.docEditor.insertText(nwDocInsert.LIPSUM)
assert nwGUI.docEditor.getText() == "### New Scene\n\nFooBar"

# qtbot.stop()

0 comments on commit 8a9b038

Please sign in to comment.