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

Method test_display_style_text

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

Source from the content-addressed store, hash-verified

211 assert result.attrs == original_attrs
212
213 def test_display_style_text(self) -> None:
214 ds = create_test_dataset_attrs()
215 with xarray.set_options(display_style="text"):
216 text = ds._repr_html_()
217 assert text.startswith("<pre>")
218 assert "&#x27;nested&#x27;" in text
219 assert "&lt;xarray.Dataset&gt;" in text
220
221 def test_display_style_html(self) -> None:
222 ds = create_test_dataset_attrs()

Callers

nothing calls this directly

Calls 3

startswithMethod · 0.80
_repr_html_Method · 0.45

Tested by

no test coverage detected