Layers unittest: isolate the depsgraph crash in individual tests

(and re-order the tests alphabetically)
This commit is contained in:
Dalai Felinto
2017-03-02 09:37:10 +01:00
parent 869f2940c2
commit a65af5d0cf
5 changed files with 103 additions and 26 deletions

View File

@@ -336,3 +336,9 @@ class RenderLayerTesting(unittest.TestCase):
collection = layer.collections[0]
self.assertEqual(len(collection.objects), 1, "New collection is empty")
def do_object_link(self, master_collection):
import bpy
self.assertEqual(master_collection.name, "Master Collection")
self.assertEqual(master_collection, bpy.context.scene.master_collection)
master_collection.objects.link(bpy.data.objects.new('object', None))