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

Function test_join_dict_keys

xarray/tests/test_computation.py:86–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84
85
86def test_join_dict_keys() -> None:
87 dicts = [dict.fromkeys(keys) for keys in [["x", "y"], ["y", "z"]]]
88 assert list(join_dict_keys(dicts, "left")) == ["x", "y"]
89 assert list(join_dict_keys(dicts, "right")) == ["y", "z"]
90 assert list(join_dict_keys(dicts, "inner")) == ["y"]
91 assert list(join_dict_keys(dicts, "outer")) == ["x", "y", "z"]
92 with pytest.raises(ValueError):
93 join_dict_keys(dicts, "exact")
94 with pytest.raises(KeyError):
95 join_dict_keys(dicts, "foobar")
96
97
98def test_collect_dict_values() -> None:

Callers

nothing calls this directly

Calls 1

join_dict_keysFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…