MCPcopy Index your code
hub / github.com/pydata/xarray / test_nonstr_variable_repr_html

Function test_nonstr_variable_repr_html

xarray/tests/test_formatting_html.py:301–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

299
300
301def test_nonstr_variable_repr_html() -> None:
302 v = xr.Variable(["time", 10], [[1, 2, 3], [4, 5, 6]], {22: "bar"})
303 assert hasattr(v, "_repr_html_")
304 with xr.set_options(display_style="html"):
305 html = v._repr_html_().strip()
306 assert "<dt><span>22 :</span></dt><dd>bar</dd>" in html
307 assert "<li><span>10</span>: 3</li></ul>" in html
308
309
310class TestDataTreeTruncatesNodes:

Callers

nothing calls this directly

Calls 2

stripMethod · 0.80
_repr_html_Method · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…