diff --git a/.gitignore b/.gitignore index 6e19e2c2216..cab742a2313 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,7 @@ dist debug_script.py test_output.txt + +plotly/api/v2/spectacle_presentations.py + +plotly/presentation_objs/ \ No newline at end of file diff --git a/plotly/tests/test_core/test_offline/test_offline.py b/plotly/tests/test_core/test_offline/test_offline.py index 407d831b16c..a4aca7ddfe7 100644 --- a/plotly/tests/test_core/test_offline/test_offline.py +++ b/plotly/tests/test_core/test_offline/test_offline.py @@ -103,23 +103,3 @@ def test_config(self): self.assertIn('"linkText": "Plotly rocks!"', html) self.assertIn('"showLink": true', html) self.assertIn('"editable": true', html) - - -class PlotlyOfflineOtherDomainTestCase(PlotlyOfflineBaseTestCase): - def setUp(self): - super(PlotlyOfflineOtherDomainTestCase, self).setUp() - plotly.tools.set_config_file(plotly_domain='https://stage.plot.ly', - plotly_api_domain='https://api-stage.plot.ly') - plotly.plotly.sign_in('PlotlyStageTest', 'rs3GA48WfFKUX4JpVL07') - - def test_plot_rendered_if_non_plotly_domain(self): - html = plotly.offline.plot(fig, output_type='div') - - # test that 'Export to stage.plot.ly' is in the html - self.assertIn('Export to stage.plot.ly', html) - - def tearDown(self): - plotly.tools.set_config_file(plotly_domain='https://plot.ly', - plotly_api_domain='https://api.plot.ly') - plotly.plotly.sign_in('PythonTest', '9v9f20pext') - super(PlotlyOfflineOtherDomainTestCase, self).tearDown() diff --git a/plotly/tests/test_optional/test_figure_factory.py b/plotly/tests/test_optional/test_figure_factory.py index cebc62c896f..1a12ba8357b 100644 --- a/plotly/tests/test_optional/test_figure_factory.py +++ b/plotly/tests/test_optional/test_figure_factory.py @@ -461,7 +461,9 @@ def test_default_dendrogram(self): marker=go.Marker(color='rgb(61,153,112)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ), go.Scatter( x=np.array([15., 15., 30., 30.]), @@ -469,7 +471,9 @@ def test_default_dendrogram(self): marker=go.Marker(color='rgb(61,153,112)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ), go.Scatter( x=np.array([5., 5., 22.5, 22.5]), @@ -477,7 +481,9 @@ def test_default_dendrogram(self): marker=go.Marker(color='rgb(0,116,217)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ) ]), layout=go.Layout( @@ -538,7 +544,9 @@ def test_dendrogram_random_matrix(self): marker=go.Marker(color='rgb(61,153,112)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ), go.Scatter( marker=go.Marker( @@ -546,19 +554,25 @@ def test_dendrogram_random_matrix(self): ), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ), go.Scatter( marker=go.Marker(color='rgb(61,153,112)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ), go.Scatter( marker=go.Marker(color='rgb(0,116,217)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ) ]), layout=go.Layout( @@ -669,7 +683,9 @@ def test_dendrogram_colorscale(self): marker=go.Marker(color='rgb(128,128,128)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ), go.Scatter( x=np.array([15., 15., 30., 30.]), @@ -677,7 +693,9 @@ def test_dendrogram_colorscale(self): marker=go.Marker(color='rgb(128,128,128)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ), go.Scatter( x=np.array([5., 5., 22.5, 22.5]), @@ -685,7 +703,9 @@ def test_dendrogram_colorscale(self): marker=go.Marker(color='rgb(0,0,0)'), mode='lines', xaxis='x', - yaxis='y' + yaxis='y', + hoverinfo='text', + text=None ) ]), layout=go.Layout(