diff options
Diffstat (limited to 'tests/unit/config/test_configtypes.py')
-rw-r--r-- | tests/unit/config/test_configtypes.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index 074a54f23..4dd7837fb 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -2063,11 +2063,13 @@ class TestKey: ('<Control-x>', keyutils.KeySequence.parse('<ctrl+x>')), ('<alt-1>', keyutils.KeySequence.parse('<alt+1>')), ('0', keyutils.KeySequence.parse('0')), + ('1', keyutils.KeySequence.parse('1')), + ('a1', keyutils.KeySequence.parse('a1')), ]) def test_to_py_valid(self, klass, val, expected): assert klass().to_py(val) == expected - @pytest.mark.parametrize('val', ['\U00010000', '<blub>', '1', 'a1']) + @pytest.mark.parametrize('val', ['\U00010000', '<blub>']) def test_to_py_invalid(self, klass, val): with pytest.raises(configexc.ValidationError): klass().to_py(val) |