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

Function test_pat003_patch_multi_operations

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

Source from the content-addressed store, hash-verified

37
38
39def test_pat003_patch_multi_operations():
40 p = Patch()
41 p.one = 1
42 p.two = 2
43
44 data = patch_to_dict(p)
45
46 assert len(data["operations"]) == 2
47 assert data["operations"][0]["location"] == ["one"]
48 assert data["operations"][1]["location"] == ["two"]
49
50
51def test_pat004_patch_nested_assign():

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…