mirror of https://github.com/borgbase/vorta
Remove unnecessary qtbot.wait (#1172)
This commit is contained in:
parent
23c47673c0
commit
4d399fe2ab
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue