MCPcopy Create free account
hub / github.com/dask/dask / test_update

Function test_update

dask/tests/test_config.py:47–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def test_update():
48 a = {"x": 1, "y": {"a": 1}}
49 b = {"x": 2, "z": 3, "y": OrderedDict({"b": 2})}
50 update(b, a)
51 assert b == {"x": 1, "y": {"a": 1, "b": 2}, "z": 3}
52
53 a = {"x": 1, "y": {"a": 1}}
54 b = {"x": 2, "z": 3, "y": {"a": 3, "b": 2}}
55 update(b, a, priority="old")
56 assert b == {"x": 2, "y": {"a": 3, "b": 2}, "z": 3}
57
58
59def test_update_new_defaults():

Callers

nothing calls this directly

Calls 1

updateFunction · 0.90

Tested by

no test coverage detected