Skip to content

Remove offline tests #837

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 26, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ dist
debug_script.py

test_output.txt

plotly/api/v2/spectacle_presentations.py

plotly/presentation_objs/
20 changes: 0 additions & 20 deletions plotly/tests/test_core/test_offline/test_offline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
40 changes: 30 additions & 10 deletions plotly/tests/test_optional/test_figure_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,23 +461,29 @@ 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.]),
y=np.array([0., 2.23606798, 2.23606798, 1.]),
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]),
y=np.array([0., 3.60555128, 3.60555128, 2.23606798]),
marker=go.Marker(color='rgb(0,116,217)'),
mode='lines',
xaxis='x',
yaxis='y'
yaxis='y',
hoverinfo='text',
text=None
)
]),
layout=go.Layout(
Expand Down Expand Up @@ -538,27 +544,35 @@ 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(
color='rgb(61,153,112)'
),
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(
Expand Down Expand Up @@ -669,23 +683,29 @@ 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.]),
y=np.array([0., 2.23606798, 2.23606798, 1.]),
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]),
y=np.array([0., 3.60555128, 3.60555128, 2.23606798]),
marker=go.Marker(color='rgb(0,0,0)'),
mode='lines',
xaxis='x',
yaxis='y'
yaxis='y',
hoverinfo='text',
text=None
)
]),
layout=go.Layout(
Expand Down