Skip to content

Commit

Permalink
Make lipusm test more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Jun 10, 2024
1 parent b76c866 commit eed4721
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 @@ -62,7 +62,8 @@ def testToolLipsum_Main(qtbot, monkeypatch, nwGUI, projPath, mockRnd):
with monkeypatch.context() as mp:
mp.setattr(GuiLipsum, "exec", lambda *a: None)
mp.setattr(GuiLipsum, "lipsumText", "FooBar")
nwGUI.mainMenu.aLipsumText.activate(QAction.Trigger)
with qtbot.waitSignal(nwGUI.docEditor.textChanged):
nwGUI.mainMenu.aLipsumText.activate(QAction.Trigger)
assert nwGUI.docEditor.getText() == "### New Scene\n\nFooBar"

# qtbot.stop()

0 comments on commit eed4721

Please sign in to comment.