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

Method test_roundtrip_string_data

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

Source from the content-addressed store, hash-verified

700 assert_identical(expected, actual)
701
702 def test_roundtrip_string_data(self) -> None:
703 expected = Dataset({"x": ("t", ["ab", "cdef"])})
704 with self.roundtrip(expected) as actual:
705 assert_identical(expected, actual)
706
707 @pytest.mark.skipif(not HAS_STRING_DTYPE, reason="requires StringDType")
708 def test_roundtrip_stringdtype_data(self) -> None:

Callers

nothing calls this directly

Calls 3

roundtripMethod · 0.95
DatasetClass · 0.90
assert_identicalFunction · 0.90

Tested by

no test coverage detected