@@ -38,7 +38,7 @@ def validator_extras():
38
38
39
39
@pytest .fixture
40
40
def 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' ])
42
42
43
43
# ### Acceptance ###
44
44
@pytest .mark .parametrize ("val" , [1 , - 19 , 0 , - 1234 ])
@@ -69,12 +69,12 @@ def test_acceptance_extras(val, validator_extras):
69
69
assert validator_extras .validate_coerce (val ) == val
70
70
71
71
# 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 ]])
73
73
def test_acceptance_extras_array (val , validator_extras_aok ):
74
74
assert validator_extras_aok .validate_coerce (val ) == val
75
75
76
76
# 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 ])
78
78
def test_rejection_extras (val , validator_extras ):
79
79
with pytest .raises (ValueError ) as validation_failure :
80
80
validator_extras .validate_coerce (val )
0 commit comments