mirror of
https://github.com/borgbase/vorta
synced 2024-12-23 08:17:08 +00:00
b55c32517c
* Simplify non-blocking BorgThread.run. * Fix issue with displaying nested folders in extract-dialog. * Fix error text expansion. * Add many new tests. Dont open main window on startup.
12 lines
453 B
Python
12 lines
453 B
Python
import vorta.borg
|
|
import vorta.models
|
|
|
|
|
|
def test_scheduler_create_backup(app, qtbot, mocker, borg_json_output):
|
|
stdout, stderr = borg_json_output('create')
|
|
popen_result = mocker.MagicMock(stdout=stdout, stderr=stderr, returncode=0)
|
|
mocker.patch.object(vorta.borg.borg_thread, 'Popen', return_value=popen_result)
|
|
|
|
app.scheduler.create_backup(1)
|
|
|
|
qtbot.waitUntil(lambda: vorta.models.EventLogModel.select().count() == 2, timeout=5000)
|