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

Function test_pat001_patch_assign_item

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

Source from the content-addressed store, hash-verified

11
12
13def test_pat001_patch_assign_item():
14 p = Patch()
15 p["item"] = "assigned"
16
17 data = patch_to_dict(p)
18
19 assert data["operations"][0] == {
20 "operation": "Assign",
21 "location": ["item"],
22 "params": {"value": "assigned"},
23 }
24
25
26def test_pat002_patch_assign_attr():

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…