Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93cb7b7 commit 5a9f445Copy full SHA for 5a9f445
plotly/tests/test_core/test_offline/test_offline.py
@@ -28,3 +28,13 @@ def test_downloading_file_saves_it_to_the_disk():
28
29
plotly.offline.download_plotlyjs(dummy_js_url)
30
assert os.path.isfile(plotly.offline.PLOTLY_OFFLINE_BUNDLE) is True
31
+
32
33
+@raises(PlotlyError)
34
+def test_initializing_before_downloading_raises_an_error():
35
+ try:
36
+ os.remove(plotly.offline.PLOTLY_OFFLINE_BUNDLE)
37
+ except OSError:
38
+ pass
39
40
+ plotly.offline.init_notebook_mode()
0 commit comments