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 07bc7b4 commit f009eb8Copy full SHA for f009eb8
plotly/tests/test_core/test_plotly/test_plot.py
@@ -181,7 +181,11 @@ def test_plot_url_response_given_sharing_key(self):
181
'sharing': 'secret'}
182
183
plot_url = py.plot(self.simple_figure, **kwargs)
184
- response = requests.get(plot_url)
+ # shareplot basically always gives a 200 if even if permission denied
185
+ # embedplot returns an actual 404
186
+ embed_url = plot_url.split('?')[0] + '.embed' + plot_url.split('?')[1]
187
+ response = requests.get(embed_url)
188
+
189
self.assertEqual(response.status_code, 200)
190
191
@attr('slow')
0 commit comments