diff --git a/tests/utils/test_schemapi.py b/tests/utils/test_schemapi.py index 4a12a2479..1df95f5c8 100644 --- a/tests/utils/test_schemapi.py +++ b/tests/utils/test_schemapi.py @@ -524,7 +524,7 @@ def chart_error_example__wrong_tooltip_type_in_faceted_chart(): return ( alt.Chart(pd.DataFrame({"a": [1]})) .mark_point() - .encode(tooltip=[{"wrong"}]) + .encode(tooltip=[{5000}]) .facet() ) @@ -532,7 +532,7 @@ def chart_error_example__wrong_tooltip_type_in_faceted_chart(): def chart_error_example__wrong_tooltip_type_in_layered_chart(): # Error: Wrong data type to pass to tooltip return alt.layer( - alt.Chart().mark_point().encode(tooltip=[{"wrong"}]), + alt.Chart().mark_point().encode(tooltip=[{5000}]), ) @@ -540,7 +540,7 @@ def chart_error_example__two_errors_in_layered_chart(): # Error 1: Wrong data type to pass to tooltip # Error 2: `Color` has no parameter named 'invalidArgument' return alt.layer( - alt.Chart().mark_point().encode(tooltip=[{"wrong"}]), + alt.Chart().mark_point().encode(tooltip=[{5000}]), alt.Chart().mark_line().encode(alt.Color(invalidArgument="unknown")), ) @@ -656,13 +656,13 @@ def chart_error_example__four_errors(): ( chart_error_example__wrong_tooltip_type_in_faceted_chart, inspect.cleandoc( - r"""'{'wrong'}' is an invalid value for `field`. Valid values are of type 'string' or 'object'.$""" + r"""'\[5000\]' is an invalid value for `field`. Valid values are of type 'string' or 'object'.$""" ), ), ( chart_error_example__wrong_tooltip_type_in_layered_chart, inspect.cleandoc( - r"""'{'wrong'}' is an invalid value for `field`. Valid values are of type 'string' or 'object'.$""" + r"""'\[5000\]' is an invalid value for `field`. Valid values are of type 'string' or 'object'.$""" ), ), ( @@ -670,7 +670,7 @@ def chart_error_example__four_errors(): inspect.cleandoc( r"""Multiple errors were found. - Error 1: '{'wrong'}' is an invalid value for `field`. Valid values are of type 'string' or 'object'. + Error 1: '\[5000\]' is an invalid value for `field`. Valid values are of type 'string' or 'object'. Error 2: `Color` has no parameter named 'invalidArgument' @@ -687,7 +687,7 @@ def chart_error_example__four_errors(): inspect.cleandoc( r"""Multiple errors were found. - Error 1: '{'wrong'}' is an invalid value for `field`. Valid values are of type 'string' or 'object'. + Error 1: '\[5000\]' is an invalid value for `field`. Valid values are of type 'string' or 'object'. Error 2: '4' is an invalid value for `bandPosition`. Valid values are of type 'number'.$""" ), @@ -697,7 +697,7 @@ def chart_error_example__four_errors(): inspect.cleandoc( r"""Multiple errors were found. - Error 1: '{'wrong'}' is an invalid value for `field`. Valid values are of type 'string' or 'object'. + Error 1: '\[5000\]' is an invalid value for `field`. Valid values are of type 'string' or 'object'. Error 2: `Color` has no parameter named 'invalidArgument'