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

Method test_names_appear_somewhere

xarray/tests/test_plot.py:2281–2290  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2279
2280 @pytest.mark.slow
2281 def test_names_appear_somewhere(self) -> None:
2282 self.darray.name = "testvar"
2283 self.g.map_dataarray(xplt.contourf, "x", "y")
2284 for k, ax in zip("abc", self.g.axs.flat, strict=True):
2285 assert f"z = {k}" == ax.get_title()
2286
2287 alltxt = text_in_fig()
2288 assert self.darray.name in alltxt
2289 for label in ["x", "y"]:
2290 assert label in alltxt
2291
2292 @pytest.mark.slow
2293 def test_text_not_super_long(self) -> None:

Callers

nothing calls this directly

Calls 2

text_in_figFunction · 0.85
map_dataarrayMethod · 0.80

Tested by

no test coverage detected