Skip to content

Commit dbbd1bf

Browse files
committed
fix tests
1 parent 3ede228 commit dbbd1bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_window.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def test_fast_typing(app, qtbot):
2727
window.search_bar.setText(text)
2828
qtbot.wait(100)
2929
window.search_bar.setText("")
30-
assert window.windowTitle() == "Drill"
30+
assert window.search is None
3131

3232
window.close()
3333
assert not window.isVisible()
@@ -84,7 +84,7 @@ def test_open_search_and_delete_input(app, qtbot):
8484
window.search_bar.setText("")
8585

8686
qtbot.wait(1000)
87-
assert window.windowTitle() == "Drill"
87+
assert window.search is None
8888

8989
qtbot.wait(3000)
9090

@@ -104,7 +104,7 @@ def test_open_search_and_change_input(app, qtbot):
104104
window.search_bar.setText("document")
105105

106106
qtbot.wait(1000)
107-
assert window.windowTitle() != "Drill"
107+
assert window.search is not None
108108

109109
qtbot.wait(3000)
110110

0 commit comments

Comments
 (0)