MCPcopy Index your code
hub / github.com/plotly/dash / test_pat002_patch_assign_attr

Function test_pat002_patch_assign_attr

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

Source from the content-addressed store, hash-verified

24
25
26def test_pat002_patch_assign_attr():
27 p = Patch()
28 p.item = "assigned"
29
30 data = patch_to_dict(p)
31
32 assert data["operations"][0] == {
33 "operation": "Assign",
34 "location": ["item"],
35 "params": {"value": "assigned"},
36 }
37
38
39def test_pat003_patch_multi_operations():

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…