@@ -28,7 +28,7 @@ def validator_aok_colorscale():
2828# Array not ok, numbers not ok
2929# ----------------------------
3030@pytest .mark .parametrize ('val' ,
31- ['red' , 'BLUE' , 'rgb(255, 0, 0)' , 'hsl(0, 100%, 50%)' , 'hsla(0, 100%, 50%, 100%)' ,
31+ ['red' , 'BLUE' , 'rgb(255, 0, 0)' , 'var(--accent)' , ' hsl(0, 100%, 50%)' , 'hsla(0, 100%, 50%, 100%)' ,
3232 'hsv(0, 100%, 100%)' , 'hsva(0, 100%, 100%, 50%)' ])
3333def test_acceptance (val , validator ):
3434 assert validator .validate_coerce (val ) == val
@@ -58,7 +58,7 @@ def test_rejection(val, validator):
5858# ------------------------
5959# ### Acceptance ###
6060@pytest .mark .parametrize ('val' ,
61- ['red' , 'BLUE' , 23 , 15 , 'rgb(255, 0, 0)' , 'hsl(0, 100%, 50%)' , 'hsla(0, 100%, 50%, 100%)' ,
61+ ['red' , 'BLUE' , 23 , 15 , 'rgb(255, 0, 0)' , 'var(--accent)' , ' hsl(0, 100%, 50%)' , 'hsla(0, 100%, 50%, 100%)' ,
6262 'hsv(0, 100%, 100%)' , 'hsva(0, 100%, 100%, 50%)' ])
6363def test_acceptance_colorscale (val , validator_colorscale ):
6464 assert validator_colorscale .validate_coerce (val ) == val
0 commit comments