Skip to content

Commit d4c3162

Browse files
committed
adjust test_xarray_input.py
1 parent 7c31dc1 commit d4c3162

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
ColorValidator,
1010
)
1111

12+
from plotly.tests.b64 import _b64
13+
1214

1315
@pytest.fixture
1416
def data_array_validator(request):
@@ -99,10 +101,12 @@ def test_data_array_validator(data_array_validator, numeric_xarray):
99101
res = data_array_validator.validate_coerce(numeric_xarray)
100102

101103
# Check type
102-
assert isinstance(res, np.ndarray)
104+
assert isinstance(res, object)
105+
106+
numeric_xarray = _b64(numeric_xarray)
103107

104108
# Check dtype
105-
assert res.dtype == numeric_xarray.dtype
109+
assert res["dtype"] == numeric_xarray["dtype"]
106110

107111
# Check values
108112
np.testing.assert_array_equal(res, numeric_xarray)

0 commit comments

Comments
 (0)