From deec57c9c698fa813526e2b30603b844650ea8c3 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 17 Jun 2020 20:23:20 +0200 Subject: [PATCH] Another attempt at forcing the test word counter --- .travis.yml | 2 +- tests/test_gui.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 89ca3727..873ded23 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ install: - pip install --upgrade pip - pip install -r requirements.txt # - pip install pytest-faulthandler - - pip install PyVirtualDisplay==0.2.5 + - pip install PyVirtualDisplay - pip install pytest-xvfb - pip install pytest-cov - pip install pytest-qt diff --git a/tests/test_gui.py b/tests/test_gui.py index eeb6d490..b83b67fd 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -215,8 +215,9 @@ def testMainWindows(qtbot, nwTempGUI, nwRef, nwTemp): qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay) qtbot.wait(stepDelay) - nwGUI.docEditor.wCounter.start() - qtbot.wait(1000) + nwGUI.docEditor.wCounter.run() + nwGUI.docEditor._updateCounts() + qtbot.wait(stepDelay) # Save the document assert nwGUI.docEditor.docChanged