MCPcopy
hub / github.com/plotly/dash / test_pat004_patch_nested_assign

Function test_pat004_patch_nested_assign

tests/unit/test_patch.py:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def test_pat004_patch_nested_assign():
52 p = Patch()
53
54 p["nest_item"]["nested"]["deep"] = "deep"
55 p.nest_attr.nested.deep = "deep"
56
57 data = patch_to_dict(p)
58
59 assert data["operations"][0]["location"] == ["nest_item", "nested", "deep"]
60 assert data["operations"][1]["location"] == ["nest_attr", "nested", "deep"]
61
62
63def test_pat005_patch_delete_item():

Callers

nothing calls this directly

Calls 2

PatchClass · 0.90
patch_to_dictFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…