Skip to content

Commit 00b9b7e

Browse files
committed
Update test_div_output to allow inline style on outer wrapper
The outer div produced by to_html now carries a style attribute so that requested dimensions propagate down to the figure element (see #5591). Loosen the existing assertion accordingly.
1 parent 083b847 commit 00b9b7e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/test_core/test_offline/test_offline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def test_div_output(self):
278278

279279
self.assertNotIn("<html>", html)
280280
self.assertNotIn("</html>", html)
281-
self.assertTrue(html.startswith("<div>") and html.endswith("</div>"))
281+
self.assertTrue(html.startswith("<div") and html.endswith("</div>"))
282282

283283
def test_config(self):
284284
config = dict(linkText="Plotly rocks!", showLink=True, editable=True)

0 commit comments

Comments
 (0)