MCPcopy Create free account
hub / github.com/pydata/xarray / test_mapping

Method test_mapping

xarray/tests/test_strategies.py:250–255  ·  view source on GitHub ↗
(self, data, dim_sizes)

Source from the content-addressed store, hash-verified

248
249 @given(st.data(), dimension_sizes(min_dims=1))
250 def test_mapping(self, data, dim_sizes):
251 subset_of_dim_sizes = data.draw(unique_subset_of(dim_sizes))
252
253 for dim, length in subset_of_dim_sizes.items():
254 assert dim in dim_sizes
255 assert dim_sizes[dim] == length
256
257 @given(st.data(), dimension_names(min_dims=1))
258 def test_iterable(self, data, dim_names):

Callers

nothing calls this directly

Calls 2

unique_subset_ofFunction · 0.90
itemsMethod · 0.80

Tested by

no test coverage detected