This seemed to fix the test on the local machine
This commit is contained in:
+3
-2
@@ -8,14 +8,15 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- libenchant-dev
|
- libenchant-dev
|
||||||
|
- python3-pyqt5
|
||||||
|
- python3-pyqt5.qtsvg
|
||||||
python:
|
python:
|
||||||
- "3.6"
|
- "3.6"
|
||||||
- "3.7"
|
- "3.7"
|
||||||
- "3.8"
|
- "3.8"
|
||||||
install:
|
install:
|
||||||
- pip install --upgrade pip
|
- pip install --upgrade pip
|
||||||
- pip install lxml
|
- pip install -r requirements.txt
|
||||||
- pip install pyqt5==5.14.2
|
|
||||||
# - pip install pytest-faulthandler
|
# - pip install pytest-faulthandler
|
||||||
- pip install PyVirtualDisplay
|
- pip install PyVirtualDisplay
|
||||||
- pip install pytest-xvfb
|
- pip install pytest-xvfb
|
||||||
|
|||||||
+1
-1
@@ -593,7 +593,7 @@ class GuiDocEditor(QTextEdit):
|
|||||||
as it is triggered on every keypress when typing.
|
as it is triggered on every keypress when typing.
|
||||||
"""
|
"""
|
||||||
self.hasSelection = self.textCursor().hasSelection()
|
self.hasSelection = self.textCursor().hasSelection()
|
||||||
if not self.hasFocus():
|
if self.docSearch.searchBox.hasFocus():
|
||||||
# Block the event when the focus is on the search bar.
|
# Block the event when the focus is on the search bar.
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user