File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
plotly/tests/test_core/test_offline Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -79,10 +79,11 @@ def test_autoresizing(self):
79
79
for resize_code_string in resize_code_strings :
80
80
self .assertTrue (resize_code_string not in html )
81
81
82
- #def test_plot_rendered_if_non_plotly_domain(self):
83
- # plotly.tools.set_config_file(plotly_domain='https://stage.plot.ly',
84
- # plotly_api_domain='https://api-stage.plot.ly')
85
-
86
-
87
-
82
+ def test_plot_rendered_if_non_plotly_domain (self ):
83
+ plotly .tools .set_config_file (plotly_domain = 'https://stage.plot.ly' ,
84
+ plotly_api_domain = 'https://api-stage.plot.ly' )
88
85
86
+ html = plotly .offline .plot (fig , output_type = 'div' )
87
+ # test that 'Export to stage.plot.ly' is in the html
88
+ self .assertTrue ('Export to stage.plot.ly' in html )
89
+ self .assertTrue ('Export to plot.ly' not in html )
You can’t perform that action at this time.
0 commit comments