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

Method setUp

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

Source from the content-addressed store, hash-verified

201class TestDataArrayMethods(_BaseTest):
202 @pytest.fixture(autouse=True)
203 def setUp(self, request, namespace):
204 self.setup_for_test(request, namespace)
205 self.x = self.get_test_dataarray()
206
207 def test_loc(self):
208 result = self.x.loc[{"x": slice(1, 3)}]

Callers

nothing calls this directly

Calls 2

setup_for_testMethod · 0.80
get_test_dataarrayMethod · 0.80

Tested by

no test coverage detected