Skip to content

Commit 728ce95

Browse files
authored
Merge pull request #837 from plotly/remove-offline-tests
Remove offline tests
2 parents 75673a9 + 0f9c40b commit 728ce95

File tree

3 files changed

+34
-30
lines changed

3 files changed

+34
-30
lines changed

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ dist
1717
debug_script.py
1818

1919
test_output.txt
20+
21+
plotly/api/v2/spectacle_presentations.py
22+
23+
plotly/presentation_objs/

Diff for: plotly/tests/test_core/test_offline/test_offline.py

-20
Original file line numberDiff line numberDiff line change
@@ -103,23 +103,3 @@ def test_config(self):
103103
self.assertIn('"linkText": "Plotly rocks!"', html)
104104
self.assertIn('"showLink": true', html)
105105
self.assertIn('"editable": true', html)
106-
107-
108-
class PlotlyOfflineOtherDomainTestCase(PlotlyOfflineBaseTestCase):
109-
def setUp(self):
110-
super(PlotlyOfflineOtherDomainTestCase, self).setUp()
111-
plotly.tools.set_config_file(plotly_domain='https://stage.plot.ly',
112-
plotly_api_domain='https://api-stage.plot.ly')
113-
plotly.plotly.sign_in('PlotlyStageTest', 'rs3GA48WfFKUX4JpVL07')
114-
115-
def test_plot_rendered_if_non_plotly_domain(self):
116-
html = plotly.offline.plot(fig, output_type='div')
117-
118-
# test that 'Export to stage.plot.ly' is in the html
119-
self.assertIn('Export to stage.plot.ly', html)
120-
121-
def tearDown(self):
122-
plotly.tools.set_config_file(plotly_domain='https://plot.ly',
123-
plotly_api_domain='https://api.plot.ly')
124-
plotly.plotly.sign_in('PythonTest', '9v9f20pext')
125-
super(PlotlyOfflineOtherDomainTestCase, self).tearDown()

Diff for: plotly/tests/test_optional/test_figure_factory.py

+30-10
Original file line numberDiff line numberDiff line change
@@ -461,23 +461,29 @@ def test_default_dendrogram(self):
461461
marker=go.Marker(color='rgb(61,153,112)'),
462462
mode='lines',
463463
xaxis='x',
464-
yaxis='y'
464+
yaxis='y',
465+
hoverinfo='text',
466+
text=None
465467
),
466468
go.Scatter(
467469
x=np.array([15., 15., 30., 30.]),
468470
y=np.array([0., 2.23606798, 2.23606798, 1.]),
469471
marker=go.Marker(color='rgb(61,153,112)'),
470472
mode='lines',
471473
xaxis='x',
472-
yaxis='y'
474+
yaxis='y',
475+
hoverinfo='text',
476+
text=None
473477
),
474478
go.Scatter(
475479
x=np.array([5., 5., 22.5, 22.5]),
476480
y=np.array([0., 3.60555128, 3.60555128, 2.23606798]),
477481
marker=go.Marker(color='rgb(0,116,217)'),
478482
mode='lines',
479483
xaxis='x',
480-
yaxis='y'
484+
yaxis='y',
485+
hoverinfo='text',
486+
text=None
481487
)
482488
]),
483489
layout=go.Layout(
@@ -538,27 +544,35 @@ def test_dendrogram_random_matrix(self):
538544
marker=go.Marker(color='rgb(61,153,112)'),
539545
mode='lines',
540546
xaxis='x',
541-
yaxis='y'
547+
yaxis='y',
548+
hoverinfo='text',
549+
text=None
542550
),
543551
go.Scatter(
544552
marker=go.Marker(
545553
color='rgb(61,153,112)'
546554
),
547555
mode='lines',
548556
xaxis='x',
549-
yaxis='y'
557+
yaxis='y',
558+
hoverinfo='text',
559+
text=None
550560
),
551561
go.Scatter(
552562
marker=go.Marker(color='rgb(61,153,112)'),
553563
mode='lines',
554564
xaxis='x',
555-
yaxis='y'
565+
yaxis='y',
566+
hoverinfo='text',
567+
text=None
556568
),
557569
go.Scatter(
558570
marker=go.Marker(color='rgb(0,116,217)'),
559571
mode='lines',
560572
xaxis='x',
561-
yaxis='y'
573+
yaxis='y',
574+
hoverinfo='text',
575+
text=None
562576
)
563577
]),
564578
layout=go.Layout(
@@ -669,23 +683,29 @@ def test_dendrogram_colorscale(self):
669683
marker=go.Marker(color='rgb(128,128,128)'),
670684
mode='lines',
671685
xaxis='x',
672-
yaxis='y'
686+
yaxis='y',
687+
hoverinfo='text',
688+
text=None
673689
),
674690
go.Scatter(
675691
x=np.array([15., 15., 30., 30.]),
676692
y=np.array([0., 2.23606798, 2.23606798, 1.]),
677693
marker=go.Marker(color='rgb(128,128,128)'),
678694
mode='lines',
679695
xaxis='x',
680-
yaxis='y'
696+
yaxis='y',
697+
hoverinfo='text',
698+
text=None
681699
),
682700
go.Scatter(
683701
x=np.array([5., 5., 22.5, 22.5]),
684702
y=np.array([0., 3.60555128, 3.60555128, 2.23606798]),
685703
marker=go.Marker(color='rgb(0,0,0)'),
686704
mode='lines',
687705
xaxis='x',
688-
yaxis='y'
706+
yaxis='y',
707+
hoverinfo='text',
708+
text=None
689709
)
690710
]),
691711
layout=go.Layout(

0 commit comments

Comments
 (0)