Another attempt at forcing the test word counter
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ install:
|
|||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install -r requirements.txt
|
- pip install -r requirements.txt
|
||||||
# - pip install pytest-faulthandler
|
# - pip install pytest-faulthandler
|
||||||
- pip install PyVirtualDisplay==0.2.5
|
- pip install PyVirtualDisplay
|
||||||
- pip install pytest-xvfb
|
- pip install pytest-xvfb
|
||||||
- pip install pytest-cov
|
- pip install pytest-cov
|
||||||
- pip install pytest-qt
|
- pip install pytest-qt
|
||||||
|
|||||||
+3
-2
@@ -215,8 +215,9 @@ def testMainWindows(qtbot, nwTempGUI, nwRef, nwTemp):
|
|||||||
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
qtbot.keyClick(nwGUI.docEditor, Qt.Key_Return, delay=keyDelay)
|
||||||
|
|
||||||
qtbot.wait(stepDelay)
|
qtbot.wait(stepDelay)
|
||||||
nwGUI.docEditor.wCounter.start()
|
nwGUI.docEditor.wCounter.run()
|
||||||
qtbot.wait(1000)
|
nwGUI.docEditor._updateCounts()
|
||||||
|
qtbot.wait(stepDelay)
|
||||||
|
|
||||||
# Save the document
|
# Save the document
|
||||||
assert nwGUI.docEditor.docChanged
|
assert nwGUI.docEditor.docChanged
|
||||||
|
|||||||
Reference in New Issue
Block a user