Fix tests for PyQt 5.15 on Linux. By @samuel-w (#573)

This commit is contained in:
Manu 2020-08-10 15:57:13 +08:00 committed by GitHub
parent 3640e17270
commit 2f68b2795c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,8 @@ jobs:
run: |
sudo apt update && sudo apt install -y \
xvfb herbstluftwm libssl-dev openssl libacl1-dev libacl1 build-essential \
libxkbcommon-x11-0 dbus-x11
libxkbcommon-x11-0 dbus-x11 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 \
libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: |

View File

@ -33,7 +33,7 @@ setup_requires =
install_requires =
appdirs
paramiko
pyqt5 < 5.15
pyqt5
peewee
python-dateutil
apscheduler

View File

@ -1,4 +1,3 @@
from PyQt5 import QtCore
import vorta.models
import vorta.views
@ -11,5 +10,5 @@ def test_add_folder(qapp, qtbot, tmpdir, monkeypatch, choose_file_dialog):
main.tabWidget.setCurrentIndex(1)
tab = main.sourceTab
qtbot.mouseClick(tab.sourceAddFolder, QtCore.Qt.LeftButton)
tab.sourceAddFolder.click()
qtbot.waitUntil(lambda: tab.sourceFilesWidget.count() == 2, timeout=5000)