Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a827f18

Browse files
committed
Add test.
1 parent 6ea984c commit a827f18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plotly/tests/test_core/test_graph_objs/test_to_string.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,9 @@ def test_to_string():
3030
fig_string = fig.to_string(pretty=False)
3131
comp_string = 'Figure(\n data=Data([\n Scatter(\n x=[1, 2, 3, 4],\n y=[10, 15, 13, 17]\n ),\n Scatter(\n x=[1, 2, 3, 4],\n y=[16, 5, 11, 9]\n )\n ]),\n layout=Layout(\n autosize=False,\n width=500,\n height=500,\n margin=Margin(\n l=65,\n r=50,\n b=65,\n t=65\n )\n )\n)'
3232
assert fig_string == comp_string
33+
34+
35+
def test_nested_list():
36+
z = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
37+
13, 14, 15, 16, 17, 18, 19, 20, 21]]
38+
print Contour(z=z).to_string()

0 commit comments

Comments
 (0)