Skip to content

Commit c106735

Browse files
committed
Allow longer patches in test_use_move_...
1 parent 282beba commit c106735

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,9 @@ def test_use_move_instead_of_remove_add(self):
329329
def test_use_move_instead_of_add_remove(self):
330330
def fn(_src, _dst):
331331
patch = list(jsonpatch.make_patch(_src, _dst))
332-
self.assertEqual(len(patch), 1)
333-
self.assertEqual(patch[0]['op'], 'move')
332+
# Check if there are only 'move' operations
333+
for p in patch:
334+
self.assertEqual(p['op'], 'move')
334335
res = jsonpatch.apply_patch(_src, patch)
335336
self.assertEqual(res, _dst)
336337

0 commit comments

Comments
 (0)