Skip to content

Commit d35b61b

Browse files
committed
try to fix tests by changing plotly urls
1 parent 60e3666 commit d35b61b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
@pytest.mark.matplotlib
2424
class PlotMPLTest(TestCase):
2525
def setUp(self):
26-
py.sign_in("PlotlyImageTest", "786r5mecv0", plotly_domain="https://plot.ly")
26+
py.sign_in("PlotlyImageTest", "786r5mecv0", plotly_domain="https://plotly.com")
2727

2828
def test_update_type_error(self):
2929
fig, ax = plt.subplots()
@@ -45,7 +45,7 @@ def test_update(self):
4545
title = "new title"
4646
update = {"layout": {"title": title}}
4747
url = py.plot_mpl(fig, update=update, filename="nosetests", auto_open=False)
48-
un = url.replace("https://plot.ly/~", "").split("/")[0]
49-
fid = url.replace("https://plot.ly/~", "").split("/")[1]
48+
un = url.replace("https://plotly.com/~", "").split("/")[0]
49+
fid = url.replace("https://plotly.com/~", "").split("/")[1]
5050
pfig = py.get_figure(un, fid)
5151
assert pfig["layout"]["title"]["text"] == title

packages/python/chart-studio/chart_studio/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"with 'https':\n\n\n"
3535
"import plotly\n"
3636
"plotly.tools.set_config_file(\n"
37-
" plotly_domain='https://plot.ly',\n"
38-
" plotly_api_domain='https://api.plot.ly'\n"
37+
" plotly_domain='https://plotly.com',\n"
38+
" plotly_api_domain='https://api.plotly.com'\n"
3939
")\n\n\n"
4040
"If you are using On-Premise then you will need to use your company's "
4141
"domain and api_domain urls:\n\n\n"
@@ -46,7 +46,7 @@
4646
")\n\n\n"
4747
"Make sure to replace `your-company.com` with the URL of your Plotly "
4848
"On-Premise server.\nSee "
49-
"https://plot.ly/python/getting-started/#special-instructions-for-plotly-onpremise-users "
49+
"https://plotly.com/python/getting-started/#special-instructions-for-plotly-onpremise-users "
5050
"for more help with getting started with On-Premise."
5151
)
5252

0 commit comments

Comments
 (0)