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

Method setUp

xarray/tests/test_duck_array_wrapping.py:141–144  ·  view source on GitHub ↗
(self, request, namespace)

Source from the content-addressed store, hash-verified

139class TestTopLevelMethods(_BaseTest):
140 @pytest.fixture(autouse=True)
141 def setUp(self, request, namespace):
142 self.setup_for_test(request, namespace)
143 self.x1 = self.get_test_dataarray()
144 self.x2 = self.get_test_dataarray().assign_coords(x=np.arange(2, 7))
145
146 def test_apply_ufunc(self):
147 func = lambda x: x + 1

Callers

nothing calls this directly

Calls 4

setup_for_testMethod · 0.80
get_test_dataarrayMethod · 0.80
arangeMethod · 0.80
assign_coordsMethod · 0.45

Tested by

no test coverage detected