From 5a03d31f6f9f95dcd916e39765ab9682ff54a566 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 27 Feb 2018 08:53:28 +0100 Subject: [PATCH] More test_basekeyparser fixes --- tests/unit/keyinput/test_basekeyparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/keyinput/test_basekeyparser.py b/tests/unit/keyinput/test_basekeyparser.py index 8b3ce2d70..91acfa423 100644 --- a/tests/unit/keyinput/test_basekeyparser.py +++ b/tests/unit/keyinput/test_basekeyparser.py @@ -320,7 +320,7 @@ class TestCount: assert not keyparser.execute.called assert not keyparser._sequence # Valid call with ccc gets the correct count - handle_text((Qt.Key_6, '2'), (Qt.Key_2, '3'), (Qt.Key_C, 'c'), + handle_text((Qt.Key_2, '2'), (Qt.Key_3, '3'), (Qt.Key_C, 'c'), (Qt.Key_C, 'c'), (Qt.Key_C, 'c')) keyparser.execute.assert_called_once_with( 'message-info ccc', keyparser.Type.chain, 23) @@ -329,7 +329,7 @@ class TestCount: def test_clear_keystring(qtbot, keyparser): """Test that the keystring is cleared and the signal is emitted.""" - keyparser._keystring = 'test' + keyparser._sequence = keyseq('test') with qtbot.waitSignal(keyparser.keystring_updated): keyparser.clear_keystring() assert not keyparser._sequence