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

Function test_pat010_patch_merge

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

Source from the content-addressed store, hash-verified

119
120
121def test_pat010_patch_merge():
122 p = Patch()
123 p.update({"merge": "merged"})
124
125 p["merge"] |= {"ior": "iored"}
126 data = patch_to_dict(p)
127
128 assert data["operations"][0] == {
129 "operation": "Merge",
130 "location": [],
131 "params": {"value": {"merge": "merged"}},
132 }
133 assert data["operations"][1] == {
134 "operation": "Merge",
135 "location": ["merge"],
136 "params": {"value": {"ior": "iored"}},
137 }
138
139
140def test_pat011_patch_add():

Callers

nothing calls this directly

Calls 3

updateMethod · 0.95
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…