@@ -26,9 +26,7 @@ class TestJobStringParameterDefinition:
2626 pytest .param (
2727 {"name" : "Foo" , "type" : "STRING" , "default" : "some value" }, id = "has default"
2828 ),
29- pytest .param (
30- {"name" : "Foo" , "type" : "STRING" , "minLength" : 1 }, id = "smallest min length"
31- ),
29+ pytest .param ({"name" : "Foo" , "type" : "STRING" , "minLength" : 0 }, id = "minLength zero" ),
3230 pytest .param (
3331 {"name" : "Foo" , "type" : "STRING" , "maxLength" : 1 }, id = "smallest max length"
3432 ),
@@ -215,7 +213,9 @@ def test_parse_success(self, data: dict[str, Any]) -> None:
215213 id = "allowedValues item not string" ,
216214 ),
217215 #
218- pytest .param ({"name" : "Foo" , "type" : "STRING" , "minLength" : 0 }, id = "0 < min" ),
216+ pytest .param (
217+ {"name" : "Foo" , "type" : "STRING" , "minLength" : - 1 }, id = "negative minLength"
218+ ),
219219 pytest .param ({"name" : "Foo" , "type" : "STRING" , "maxLength" : 0 }, id = "0 < max" ),
220220 pytest .param (
221221 {"name" : "Foo" , "type" : "STRING" , "minLength" : 2 , "maxLength" : 1 }, id = "min > max"
@@ -495,7 +495,7 @@ class TestJobPathParameterDefinition:
495495 pytest .param (
496496 {"name" : "Foo" , "type" : "PATH" , "default" : "some value" }, id = "has default"
497497 ),
498- pytest .param ({"name" : "Foo" , "type" : "PATH" , "minLength" : 1 }, id = "smallest min length " ),
498+ pytest .param ({"name" : "Foo" , "type" : "PATH" , "minLength" : 0 }, id = "minLength zero " ),
499499 pytest .param ({"name" : "Foo" , "type" : "PATH" , "maxLength" : 1 }, id = "smallest max length" ),
500500 pytest .param (
501501 {"name" : "Foo" , "type" : "PATH" , "allowedValues" : ["a" ]}, id = "has allowedValues"
@@ -709,7 +709,7 @@ def test_parse_success(self, data: dict[str, Any]) -> None:
709709 id = "allowedValues item not string" ,
710710 ),
711711 #
712- pytest .param ({"name" : "Foo" , "type" : "PATH" , "minLength" : 0 }, id = "0 < min " ),
712+ pytest .param ({"name" : "Foo" , "type" : "PATH" , "minLength" : - 1 }, id = "negative minLength " ),
713713 pytest .param ({"name" : "Foo" , "type" : "PATH" , "maxLength" : 0 }, id = "0 < max" ),
714714 pytest .param (
715715 {"name" : "Foo" , "type" : "PATH" , "minLength" : 2 , "maxLength" : 1 }, id = "min > max"
0 commit comments