mirror of https://github.com/borgbase/vorta
Fix tests for PyQt 5.15 on Linux. By @samuel-w (#573)
This commit is contained in:
parent
3640e17270
commit
2f68b2795c
|
@ -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: |
|
||||
|
|
|
@ -33,7 +33,7 @@ setup_requires =
|
|||
install_requires =
|
||||
appdirs
|
||||
paramiko
|
||||
pyqt5 < 5.15
|
||||
pyqt5
|
||||
peewee
|
||||
python-dateutil
|
||||
apscheduler
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue