mirror of
https://github.com/borgbase/vorta
synced 2024-12-24 08:45:34 +00:00
3c519e4928
* Apply selection status to children in restore-dialog. Fixes #69 * Backup triggered from system tray wont use correct profile. Fixes #78 * Use the term FILE if both FILE or FOLDER is meant. Fixes #55 * Implement update check on/off setting for macOS * Implement autostart setting for macOS. Fixes #56
19 lines
577 B
Python
19 lines
577 B
Python
import logging
|
|
from PyQt5 import QtCore
|
|
import vorta.models
|
|
import vorta.views
|
|
|
|
|
|
def test_add_folder(app, qtbot, tmpdir, monkeypatch, choose_file_dialog):
|
|
monkeypatch.setattr(
|
|
vorta.views.source_tab, "choose_file_dialog", choose_file_dialog
|
|
)
|
|
main = app.main_window
|
|
main.tabWidget.setCurrentIndex(1)
|
|
tab = main.sourceTab
|
|
|
|
qtbot.mouseClick(tab.sourceAddFolder, QtCore.Qt.LeftButton)
|
|
qtbot.waitUntil(lambda: tab.sourceFilesWidget.count() == 2)
|
|
|
|
for src in vorta.models.SourceFileModel.select():
|
|
logging.error(src.dir, src.profile)
|