[Bf-blender-cvs] [18ee712] render-layers: Layers: unittest to cover unlinking of objects

Dalai Felinto noreply at git.blender.org
Wed Dec 21 19:15:03 CET 2016


Commit: 18ee712bf1b749b8ad646901fbda322db78eb0c5
Author: Dalai Felinto
Date:   Wed Dec 21 14:34:57 2016 +0100
Branches: render-layers
https://developer.blender.org/rB18ee712bf1b749b8ad646901fbda322db78eb0c5

Layers: unittest to cover unlinking of objects

===================================================================

M	tests/python/bl_render_layer.py

===================================================================

diff --git a/tests/python/bl_render_layer.py b/tests/python/bl_render_layer.py
index 08d5c1c..c1a92c5 100644
--- a/tests/python/bl_render_layer.py
+++ b/tests/python/bl_render_layer.py
@@ -346,15 +346,21 @@ class UnitsTesting(unittest.TestCase):
             # create sub-collections
             three_b = bpy.data.objects.get('T.3b')
             three_c = bpy.data.objects.get('T.3c')
+            three_d = bpy.data.objects.get('T.3d')
 
             scene = bpy.context.scene
 
             subzero = scene.master_collection.collections['1'].collections.new('sub-zero')
             scorpion = scene.master_collection.collections['1'].collections.new('scorpion')
 
+            # test linking sync
             subzero.objects.link(three_b)
             scorpion.objects.link(three_c)
 
+            # test unlinking sync
+            scorpion.objects.link(three_d)
+            scorpion.objects.unlink(three_d)
+
             # save file
             filepath_nested = os.path.join(dirpath, 'nested.blend')
             bpy.ops.wm.save_mainfile('EXEC_DEFAULT', filepath=filepath_nested)
@@ -374,7 +380,7 @@ class UnitsTesting(unittest.TestCase):
                 filepath_nested_json,
                 filepath_json,
                 ),
-                "Doversion test failed")
+                "Nesting test failed")
 
 
 # ############################################################




More information about the Bf-blender-cvs mailing list