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

Skip to content

Commit fb74755

Browse files
committed
rm tests that dont apply anymore
1 parent 2c80c45 commit fb74755

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

plotly/tests/test_optional/test_offline/test_offline.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,16 @@
77
from unittest import TestCase
88
import os
99

10-
from plotly.exceptions import PlotlyError
10+
from plotly.exceptions import PlotlyOfflineNotFound
1111
import plotly
1212

1313

1414
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)
2416
def test_initializing_before_downloading_raises_an_error(self):
2517
try:
2618
os.remove(plotly.offline.PLOTLY_OFFLINE_BUNDLE)
2719
except OSError:
2820
pass
2921

30-
plotly.offline.init_notebook_mode()
22+
plotly.offline.iplot([{'x': [1, 2, 3]}])

0 commit comments

Comments
 (0)