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

Method test_no_labels

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

Source from the content-addressed store, hash-verified

1550 assert "a_long_name [a_units]" in text_in_fig()
1551
1552 def test_no_labels(self) -> None:
1553 self.darray.name = "testvar"
1554 self.darray.attrs["units"] = "test_units"
1555 self.plotmethod(add_labels=False)
1556 alltxt = text_in_fig()
1557 for string in [
1558 "x_long_name [x_units]",
1559 "y_long_name [y_units]",
1560 "testvar [test_units]",
1561 ]:
1562 assert string not in alltxt
1563
1564 def test_colorbar_kwargs(self) -> None:
1565 # replace label

Callers

nothing calls this directly

Calls 1

text_in_figFunction · 0.85

Tested by

no test coverage detected