1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00

Remove unnecessary qtbot.wait (#1172)

This commit is contained in:
Manu 2022-01-24 17:05:57 +04:00 committed by GitHub
parent 23c47673c0
commit 4d399fe2ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,3 @@
import pytest
from PyQt5 import QtCore
from PyQt5.QtWidgets import QDialogButtonBox
from vorta.store.models import BackupProfileModel
@ -10,7 +9,6 @@ def test_profile_add(qapp, qtbot):
add_profile_window = main.window
qtbot.addWidget(add_profile_window)
qtbot.waitUntil(lambda: add_profile_window == qapp.activeWindow(), **pytest._wait_defaults)
qtbot.keyClicks(add_profile_window.profileNameField, 'Test Profile')
qtbot.mouseClick(add_profile_window.buttonBox.button(QDialogButtonBox.Save), QtCore.Qt.LeftButton)
@ -25,7 +23,6 @@ def test_profile_edit(qapp, qtbot):
edit_profile_window = main.window
qtbot.addWidget(edit_profile_window)
qtbot.waitUntil(lambda: edit_profile_window == qapp.activeWindow(), **pytest._wait_defaults)
edit_profile_window.profileNameField.setText("")
qtbot.keyClicks(edit_profile_window.profileNameField, 'Test Profile')