Add unit tests to all menu helpers

This commit is contained in:
Griatch 2018-07-04 19:25:44 +02:00
parent ec9813c256
commit 706ed47ccc
3 changed files with 16 additions and 12 deletions

View file

@ -290,7 +290,7 @@ def batch_update_objects_with_prototype(prototype, diff=None, objects=None):
return 0
if not diff:
diff = prototype_diff_from_object(new_prototype, objects[0])
diff, _ = prototype_diff_from_object(new_prototype, objects[0])
changed = 0
for obj in objects: