From 937d0d068847dfcafe41f18c593a35c95767da0a Mon Sep 17 00:00:00 2001 From: Luca Benci Date: Wed, 18 Oct 2017 20:30:16 +0200 Subject: [PATCH] Add some more tests --- tests/unit/config/test_configtypes.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/unit/config/test_configtypes.py b/tests/unit/config/test_configtypes.py index 7b77ef8f3..36988a0a7 100644 --- a/tests/unit/config/test_configtypes.py +++ b/tests/unit/config/test_configtypes.py @@ -1832,6 +1832,11 @@ class TestShellCommand: ({'placeholder': True}, '[foo, "{", "}", bar'), ({'placeholder': True}, '[foo, bar]'), ({'placeholder': True}, '[foo, "{fi", "le}", bar'), + + # Like valid ones but with wrong placeholder + ({'placeholder': True}, '[f, "{wrong}", b]'), + ({'placeholder': True}, '["f{wrong}b"]'), + ({'placeholder': True}, '[f, "b {wrong}"]'), ]) def test_from_str_invalid(self, klass, kwargs, val): with pytest.raises(configexc.ValidationError):