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

Function test_either_dict_or_kwargs

xarray/tests/test_utils.py:250–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248
249
250def test_either_dict_or_kwargs():
251 result = either_dict_or_kwargs(dict(a=1), {}, "foo")
252 expected = dict(a=1)
253 assert result == expected
254
255 result = either_dict_or_kwargs({}, dict(a=1), "foo")
256 expected = dict(a=1)
257 assert result == expected
258
259 with pytest.raises(ValueError, match=r"foo"):
260 result = either_dict_or_kwargs(dict(a=1), dict(a=1), "foo")
261
262
263@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

either_dict_or_kwargsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…