Skip to content

Commit 9986b2d

Browse files
committed
Remove mention of italics
1 parent 3f13e9a commit 9986b2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def validator_extras():
3838

3939
@pytest.fixture
4040
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'])
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]])
7373
def 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])
7878
def test_rejection_extras(val, validator_extras):
7979
with pytest.raises(ValueError) as validation_failure:
8080
validator_extras.validate_coerce(val)

0 commit comments

Comments
 (0)