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

Method test_write_store

xarray/tests/test_backends.py:508–515  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

506 assert_identical(expected, actual)
507
508 def test_write_store(self) -> None:
509 expected = create_test_data()
510 with self.create_store() as store:
511 expected.dump_to_store(store)
512 # we need to cf decode the store because it has time and
513 # non-dimension coordinates
514 with xr.decode_cf(store) as actual:
515 assert_allclose(expected, actual)
516
517 def check_dtypes_roundtripped(self, expected, actual):
518 for k in expected.variables:

Callers

nothing calls this directly

Calls 4

create_storeMethod · 0.95
assert_allcloseFunction · 0.90
create_test_dataFunction · 0.85
dump_to_storeMethod · 0.80

Tested by

no test coverage detected