File tree Expand file tree Collapse file tree
test_optional/test_offline Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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>" ))
You can’t perform that action at this time.
0 commit comments