Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Remove old tests
  • Loading branch information
marthacryan committed Sep 11, 2024
commit c0205a1f344559c402a31e08290beda38a52aa29
Original file line number Diff line number Diff line change
Expand Up @@ -161,30 +161,6 @@ def test_including_plotlyjs_false_div(self):
self.assertNotIn(PLOTLYJS, html)
self.assertNotIn(directory_script, html)

def test_including_plotlyjs_cdn_html(self):
for include_plotlyjs in ["cdn", "CDN", "Cdn"]:
html = self._read_html(
plotly.offline.plot(
fig,
include_plotlyjs=include_plotlyjs,
output_type="file",
filename=html_filename,
auto_open=False,
)
)
self.assertIn(plotly_config_script, html)
self.assertNotIn(PLOTLYJS, html)
self.assertNotIn(directory_script, html)

def test_including_plotlyjs_cdn_div(self):
for include_plotlyjs in ["cdn", "CDN", "Cdn"]:
html = plotly.offline.plot(
fig, include_plotlyjs=include_plotlyjs, output_type="div"
)
self.assertIn(plotly_config_script, html)
self.assertNotIn(PLOTLYJS, html)
self.assertNotIn(directory_script, html)

def test_including_plotlyjs_directory_html(self):
self.assertFalse(os.path.exists(os.path.join(here, "plotly.min.js")))

Expand Down