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 16950fc commit 2b0b005Copy full SHA for 2b0b005
plotly/tests/test_core/test_file/test_file.py
@@ -7,6 +7,7 @@
7
"""
8
import random
9
import string
10
+import requests
11
from unittest import TestCase
12
13
import plotly.plotly as py
@@ -45,7 +46,7 @@ def test_duplicate_folders(self):
45
46
py.file_ops.mkdirs(first_folder)
47
try:
48
- except PlotlyRequestError as e:
49
- self.assertTrue(400 <= e.status_code < 500)
+ except requests.exceptions.RequestException as e:
50
+ self.assertTrue(400 <= e.response.status_code < 500)
51
else:
52
self.fail('Expected this to fail!')
0 commit comments