Skip to content

Commit

Permalink
Remove unnecessary qtbot.wait (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
m3nu authored Jan 24, 2022
1 parent 23c4767 commit 4d399fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_profile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import pytest
from PyQt5 import QtCore
from PyQt5.QtWidgets import QDialogButtonBox
from vorta.store.models import BackupProfileModel
Expand All @@ -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)
Expand All @@ -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')
Expand Down

0 comments on commit 4d399fe

Please sign in to comment.