Skip to content

Commit 04ca34c

Browse files
committed
update test
1 parent 03feb92 commit 04ca34c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_core/test_offline/test_offline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_default_plot_generates_expected_html(self):
108108
self.assertIn(plotly_config_script, html) # so is config
109109
self.assertIn(PLOTLYJS, html) # and the source code
110110
# and it's an <html> doc
111-
self.assertTrue(html.startswith("<html>") and html.endswith("</html>"))
111+
self.assertTrue(html.startswith("<!doctype html>") and html.endswith("</html>"))
112112

113113
def test_including_plotlyjs_truthy_html(self):
114114
# For backwards compatibility all truthy values that aren't otherwise

tests/test_optional/test_offline/test_offline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ def test_default_mpl_plot_generates_expected_html(self):
8888
self.assertTrue(data_json in html) # data is in there
8989
self.assertTrue(PLOTLYJS in html) # and the source code
9090
# and it's an <html> doc
91-
self.assertTrue(html.startswith("<html>") and html.endswith("</html>"))
91+
self.assertTrue(html.startswith("<!doctype html>") and html.endswith("</html>"))

0 commit comments

Comments
 (0)