From 4ee6d014ffc20a350fb547bfeb0dd547ba58ffd2 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Wed, 8 May 2013 22:13:33 +0200 Subject: [PATCH] release the key --- tests/interfaces/openlp_core_ui/test_mainwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/interfaces/openlp_core_ui/test_mainwindow.py b/tests/interfaces/openlp_core_ui/test_mainwindow.py index 821c6f980..6d3450a4c 100644 --- a/tests/interfaces/openlp_core_ui/test_mainwindow.py +++ b/tests/interfaces/openlp_core_ui/test_mainwindow.py @@ -52,7 +52,7 @@ class TestMainWindow(TestCase): # WHEN: Press the shortcut. QtTest.QTest.keyPress(self.main_window, QtCore.Qt.Key_F, QtCore.Qt.ControlModifier) - QtTest.QTest.keyPress(self.main_window, QtCore.Qt.Key_F, QtCore.Qt.ControlModifier) + QtTest.QTest.keyRelease(self.main_window, QtCore.Qt.Key_F, QtCore.Qt.ControlModifier) # THEN: The on_focus method should have been called. mocked_current_widget.on_focus.assert_called_with()