Skip to content

Commit b1f8e95

Browse files
committed
item->assigned
1 parent c5d4dd6 commit b1f8e95

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/unit/test_patch.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,27 @@ def patch_to_dict(p):
1212

1313
def test_pat001_patch_assign_item():
1414
p = Patch()
15-
p["item"] = "item"
15+
p["item"] = "assigned"
1616

1717
data = patch_to_dict(p)
1818

1919
assert data["operations"][0] == {
2020
"operation": "Assign",
21-
"location": ["item"],
22-
"params": {"value": "item"},
21+
"location": ["assigned"],
22+
"params": {"value": "assigned"},
2323
}
2424

2525

2626
def test_pat002_patch_assign_attr():
2727
p = Patch()
28-
p.item = "item"
28+
p.item = "assigned"
2929

3030
data = patch_to_dict(p)
3131

3232
assert data["operations"][0] == {
3333
"operation": "Assign",
34-
"location": ["item"],
35-
"params": {"value": "item"},
34+
"location": ["assigned"],
35+
"params": {"value": "assigned"},
3636
}
3737

3838

0 commit comments

Comments
 (0)