diff options
author | Florian Bruhin <me@the-compiler.org> | 2018-09-26 11:27:58 +0200 |
---|---|---|
committer | Florian Bruhin <me@the-compiler.org> | 2018-09-26 11:27:58 +0200 |
commit | 73cba046e5c54c38fcff4682f181b6b7577f2968 (patch) | |
tree | 1414b3e8ece59dd1e05027846282db4ede5b8441 | |
parent | 558b1e286ded3d60f3c7b4d95f0298dd62fb1692 (diff) | |
download | qutebrowser-73cba046e5c54c38fcff4682f181b6b7577f2968.tar.gz qutebrowser-73cba046e5c54c38fcff4682f181b6b7577f2968.zip |
Use wait argument with qtbot.assert_not_emitted
-rw-r--r-- | tests/unit/browser/test_caret.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/browser/test_caret.py b/tests/unit/browser/test_caret.py index c93ff2afc..97c614f17 100644 --- a/tests/unit/browser/test_caret.py +++ b/tests/unit/browser/test_caret.py @@ -336,18 +336,18 @@ class TestFollowSelected: caret.move_to_next_word() # Move cursor away from the link mode_manager.leave(usertypes.KeyMode.caret) with qtbot.wait_signal(caret.follow_selected_done): - with qtbot.assert_not_emitted(web_tab.load_started): + with qtbot.assert_not_emitted(web_tab.load_started, + wait=self.LOAD_STARTED): caret.follow_selected() - qtbot.wait(self.LOAD_STARTED_DELAY) def test_follow_selected_with_text(self, qtbot, caret, selection, web_tab): caret.move_to_next_word() selection.toggle() caret.move_to_end_of_word() with qtbot.wait_signal(caret.follow_selected_done): - with qtbot.assert_not_emitted(web_tab.load_started): + with qtbot.assert_not_emitted(web_tab.load_started, + wait=self.LOAD_STARTED): caret.follow_selected() - qtbot.wait(self.LOAD_STARTED_DELAY) def test_follow_selected_with_link(self, caret, selection, config_stub, qtbot, web_tab): |