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

Method test_zero_dimensional_variable

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

Source from the content-addressed store, hash-verified

498 yield ds
499
500 def test_zero_dimensional_variable(self) -> None:
501 expected = create_test_data()
502 expected["float_var"] = ([], 1.0e9, {"units": "units of awesome"})
503 expected["bytes_var"] = ([], b"foobar")
504 expected["string_var"] = ([], "foobar")
505 with self.roundtrip(expected) as actual:
506 assert_identical(expected, actual)
507
508 def test_write_store(self) -> None:
509 expected = create_test_data()

Callers

nothing calls this directly

Calls 3

roundtripMethod · 0.95
assert_identicalFunction · 0.90
create_test_dataFunction · 0.85

Tested by

no test coverage detected