File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
plotly/tests/test_core/test_get_figure Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 9
9
from plotly .plotly import plotly as py
10
10
from plotly import exceptions
11
11
from nose .tools import raises
12
+ import six
13
+ import json
14
+
15
+ from unittest import TestCase
16
+ from unittest import skipIf
12
17
13
18
14
19
# username for tests: 'plotlyimagetest'
@@ -191,4 +196,14 @@ def test_all():
191
196
"following output is produced..." )
192
197
193
198
199
+ class TestBytesVStrings (TestCase ):
194
200
201
+ @skipIf (not six .PY3 , 'Decoding and missing escapes is only seen in PY3' )
202
+ def test_proper_escaping (self ):
203
+ un = 'PlotlyImageTest'
204
+ ak = '786r5mecv0'
205
+ url = "https://plot.ly/~PlotlyImageTest/91/"
206
+ py .sign_in (un , ak )
207
+ print ("getting: https://plot.ly/~PlotlyImageTest/91/" )
208
+ print ("###########################################\n \n " )
209
+ fig = py .get_figure (url )
You can’t perform that action at this time.
0 commit comments