We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 282beba commit c106735Copy full SHA for c106735
tests.py
@@ -329,8 +329,9 @@ def test_use_move_instead_of_remove_add(self):
329
def test_use_move_instead_of_add_remove(self):
330
def fn(_src, _dst):
331
patch = list(jsonpatch.make_patch(_src, _dst))
332
- self.assertEqual(len(patch), 1)
333
- self.assertEqual(patch[0]['op'], 'move')
+ # Check if there are only 'move' operations
+ for p in patch:
334
+ self.assertEqual(p['op'], 'move')
335
res = jsonpatch.apply_patch(_src, patch)
336
self.assertEqual(res, _dst)
337
0 commit comments