diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index 41da86ff8..c64891e5a 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -37,6 +37,7 @@ from PyQt5.QtNetwork import QNetworkProxy from qutebrowser.config import configtypes, configexc from qutebrowser.utils import debug, utils, qtutils from qutebrowser.browser.network import pac +from qutebrowser.keyinput import keyutils from tests.helpers import utils as testutils @@ -2058,8 +2059,8 @@ class TestKey: return configtypes.Key @pytest.mark.parametrize('val, expected', [ - ('gC', 'gC'), - ('', '') + ('gC', keyutils.KeySequence.parse('gC')), + ('', keyutils.KeySequence.parse('')), ]) def test_to_py_valid(self, klass, val, expected): assert klass().to_py(val) == expected