File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
plotly/tests/test_optional/test_graph_objs Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import base64
2
2
import numbers
3
3
import textwrap
4
+ import traceback
4
5
import uuid
5
6
from importlib import import_module
6
7
import copy
@@ -488,9 +489,10 @@ def description(self):
488
489
)
489
490
490
491
def validate_coerce (self , v ):
491
-
492
492
if is_none_or_typed_array_spec (v ):
493
493
pass
494
+ elif 'layer' in self .parent_name or 'range' in self .parent_name or 'geojson' in self .parent_name :
495
+ v = to_scalar_or_list (v )
494
496
elif is_homogeneous_array (v ):
495
497
v = to_typed_array_spec (v )
496
498
elif is_simple_array (v ):
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def test_np_layers(self):
70
70
71
71
# TODO: This is failing because the actual value of the "dash" field
72
72
# is converted to the { b64, dtype } object.
73
- # assert fig.layout['mapbox']['layers'][0]['line']['dash'] == (2.5, 1)
73
+ assert fig .layout ['mapbox' ]['layers' ][0 ]['line' ]['dash' ] == (2.5 , 1 )
74
74
75
75
assert (
76
76
fig .layout ["mapbox" ]["layers" ][0 ]["source" ]["features" ][0 ]["geometry" ][
You can’t perform that action at this time.
0 commit comments