File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1412,11 +1412,13 @@ def test_include_obj_callback_strict(self):
1412
1412
def include_obj_callback_strict (obj , path ):
1413
1413
return True if isinstance (obj , int ) and obj > 10 else False
1414
1414
1415
- t1 = {"x" : 10 , "y" : "b" , "z" : "c" }
1416
- t2 = {"x" : 12 , "y" : "b" , "z" : "c" }
1415
+ t1 = {"x" : 11 , "y" : 10 , "z" : "c" }
1416
+ t2 = {"x" : 12 , "y" : 12 , "z" : "c" }
1417
1417
ddiff = DeepDiff (t1 , t2 , include_obj_callback_strict = include_obj_callback_strict )
1418
- result = {}
1418
+ result = {'values_changed' : { "root['x']" : { 'new_value' : 12 , 'old_value' : 11 }} }
1419
1419
assert result == ddiff
1420
+ assert {"root['x']" } == ddiff .affected_paths
1421
+ assert {"x" } == ddiff .affected_root_keys
1420
1422
1421
1423
def test_skip_exclude_obj_callback (self ):
1422
1424
def exclude_obj_callback (obj , path ):
You can’t perform that action at this time.
0 commit comments