@@ -38,7 +38,7 @@ def validator_extras():
3838
3939@pytest .fixture
4040def validator_extras_aok ():
41- return IntegerValidator ("prop" , "parent" , min = - 2 , max = 10 , array_ok = True , extras = ['normal' , 'bold' , 'italics' ])
41+ return IntegerValidator ("prop" , "parent" , min = - 2 , max = 10 , array_ok = True , extras = ['normal' , 'bold' ])
4242
4343# ### Acceptance ###
4444@pytest .mark .parametrize ("val" , [1 , - 19 , 0 , - 1234 ])
@@ -69,12 +69,12 @@ def test_acceptance_extras(val, validator_extras):
6969 assert validator_extras .validate_coerce (val ) == val
7070
7171# Test extras for array_ok
72- @pytest .mark .parametrize ("val" , [[10 , 'normal' , 'bold' ], ['italics ' ], [10 , - 2 ], [5 ]])
72+ @pytest .mark .parametrize ("val" , [[10 , 'normal' , 'bold' ], ['normal ' ], [10 , - 2 ], [5 ]])
7373def test_acceptance_extras_array (val , validator_extras_aok ):
7474 assert validator_extras_aok .validate_coerce (val ) == val
7575
7676# Test rejection by extras
77- @pytest .mark .parametrize ("val" , ['italic ' , 'bolditalic ' , - 3 , 11 ])
77+ @pytest .mark .parametrize ("val" , ['invalid value ' , 'different invalid value ' , - 3 , 11 ])
7878def test_rejection_extras (val , validator_extras ):
7979 with pytest .raises (ValueError ) as validation_failure :
8080 validator_extras .validate_coerce (val )
0 commit comments