mirror of
https://github.com/borgbase/vorta
synced 2024-12-23 00:07:58 +00:00
09b697e395
* Add error message when Borg binary is missing. Fixes #333 * Test failures. Stick with PyQt 5.14 for now. * Clarify exclude file placeholder text. Fixes #314
15 lines
479 B
Python
15 lines
479 B
Python
from PyQt5 import QtCore
|
|
import vorta.models
|
|
import vorta.views
|
|
|
|
|
|
def test_add_folder(qapp, qtbot, tmpdir, monkeypatch, choose_file_dialog):
|
|
monkeypatch.setattr(
|
|
vorta.views.source_tab, "choose_file_dialog", choose_file_dialog
|
|
)
|
|
main = qapp.main_window
|
|
main.tabWidget.setCurrentIndex(1)
|
|
tab = main.sourceTab
|
|
|
|
qtbot.mouseClick(tab.sourceAddFolder, QtCore.Qt.LeftButton)
|
|
qtbot.waitUntil(lambda: tab.sourceFilesWidget.count() == 2, timeout=5000)
|