99 ColorValidator ,
1010)
1111
12+ from plotly .tests .b64 import _b64
13+
1214
1315@pytest .fixture
1416def data_array_validator (request ):
@@ -91,7 +93,7 @@ def test_numeric_validator_numeric_pandas(number_validator, numeric_pandas):
9193 res = number_validator .validate_coerce (numeric_pandas )
9294
9395 # Check type
94- assert isinstance (res , np . ndarray )
96+ assert isinstance (res , object )
9597
9698 # Check dtype
9799 assert res .dtype == numeric_pandas .dtype
@@ -104,7 +106,7 @@ def test_integer_validator_numeric_pandas(integer_validator, numeric_pandas):
104106 res = integer_validator .validate_coerce (numeric_pandas )
105107
106108 # Check type
107- assert isinstance (res , np . ndarray )
109+ assert isinstance (res , object )
108110
109111 # Check dtype
110112 if numeric_pandas .dtype .kind in ("u" , "i" ):
@@ -122,10 +124,12 @@ def test_data_array_validator(data_array_validator, numeric_pandas):
122124 res = data_array_validator .validate_coerce (numeric_pandas )
123125
124126 # Check type
125- assert isinstance (res , np .ndarray )
127+ assert isinstance (res , object )
128+
129+ numeric_pandas = _b64 (numeric_pandas )
126130
127131 # Check dtype
128- assert res . dtype == numeric_pandas . dtype
132+ assert res [ " dtype" ] == numeric_pandas [ " dtype" ]
129133
130134 # Check values
131135 np .testing .assert_array_equal (res , numeric_pandas )
0 commit comments