From b27ac3525169528a7f36dca396a100b9a6689305 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Fri, 17 May 2019 20:11:47 +0200 Subject: [PATCH] Fixed coverage for wordcounter.run() --- tests/test_gui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_gui.py b/tests/test_gui.py index 842158cc..6710003a 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -94,8 +94,8 @@ def testMainWindows(qtbot, tmpdir): qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay) qtbot.wait(stepDelay) - nwGUI.docEditor._runCounter() - qtbot.wait(1000) + nwGUI.docEditor.wCounter.run() + qtbot.wait(stepDelay) # Save the document assert nwGUI.docEditor.docChanged