mirror of
https://github.com/borgbase/vorta
synced 2025-02-08 15:44:34 +00:00
Adjust test for (fast) travisci.
This commit is contained in:
parent
b09f8480ce
commit
607be55548
2 changed files with 2 additions and 3 deletions
|
@ -55,6 +55,7 @@ def test_create(app_with_repo, borg_json_output, mocker, qtbot):
|
|||
assert EventLogModel.select().count() == 1
|
||||
assert SnapshotModel.select().count() == 1
|
||||
assert RepoModel.get(id=1).unique_size == 15520474
|
||||
qtbot.waitUntil(lambda: main.createStartBtn.isEnabled())
|
||||
assert main.createStartBtn.isEnabled()
|
||||
assert main.snapshotTab.snapshotTable.rowCount() == 1
|
||||
assert main.scheduleTab.logTableWidget.rowCount() == 1
|
||||
|
|
|
@ -32,9 +32,7 @@ def test_repo_list(app_with_repo, qtbot, mocker, borg_json_output):
|
|||
returncode=0)
|
||||
mocker.patch.object(vorta.borg.borg_thread, 'Popen', return_value=popen_result)
|
||||
|
||||
with qtbot.waitSignal(app_with_repo.backup_finished_event, timeout=3000) as blocker:
|
||||
pass
|
||||
|
||||
qtbot.waitUntil(lambda: main.createProgressText.text() == 'Refreshing snapshots done.')
|
||||
assert SnapshotModel.select().count() == 6
|
||||
assert main.createProgressText.text() == 'Refreshing snapshots done.'
|
||||
assert tab.checkButton.isEnabled()
|
||||
|
|
Loading…
Reference in a new issue