MCPcopy
hub / github.com/pydata/xarray / test_display_style_html

Method test_display_style_html

xarray/tests/test_options.py:221–226  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

219 assert "<xarray.Dataset>" in text
220
221 def test_display_style_html(self) -> None:
222 ds = create_test_dataset_attrs()
223 with xarray.set_options(display_style="html"):
224 html = ds._repr_html_()
225 assert html.startswith("<div>")
226 assert "&#x27;nested&#x27;" in html
227
228 def test_display_dataarray_style_text(self) -> None:
229 da = create_test_dataarray_attrs()

Callers

nothing calls this directly

Calls 3

startswithMethod · 0.80
_repr_html_Method · 0.45

Tested by

no test coverage detected