File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
plotly/tests/test_optional/test_offline Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change 7
7
from unittest import TestCase
8
8
import os
9
9
10
- from plotly .exceptions import PlotlyError
10
+ from plotly .exceptions import PlotlyOfflineNotFound
11
11
import plotly
12
12
13
13
14
14
class PlotlyOfflineTestCase (TestCase ):
15
- @raises (PlotlyError )
16
- def test_calling_iplot_before_initializing_raises_an_error (self ):
17
- plotly .offline .iplot ([{'x' : [1 , 2 , 3 ]}])
18
-
19
- def test_no_errors_are_raised_when_initializing_offline_mode (self ):
20
- plotly .offline .init_notebook_mode ()
21
- plotly .offline .iplot ([{'x' : [1 , 2 , 3 ]}])
22
-
23
- @raises (PlotlyError )
15
+ @raises (PlotlyOfflineNotFound )
24
16
def test_initializing_before_downloading_raises_an_error (self ):
25
17
try :
26
18
os .remove (plotly .offline .PLOTLY_OFFLINE_BUNDLE )
27
19
except OSError :
28
20
pass
29
21
30
- plotly .offline .init_notebook_mode ( )
22
+ plotly .offline .iplot ([{ 'x' : [ 1 , 2 , 3 ]}] )
You can’t perform that action at this time.
0 commit comments