Rename any instance of scene layer or render layer in code with view layer
[blender.git] / tests / python / view_layer / test_scene_copy_f.py
similarity index 92%
rename from tests/python/render_layer/test_scene_copy_f.py
rename to tests/python/view_layer/test_scene_copy_f.py
index fd4298675f20f5b3a816956812d40819eccefa7f..726861df9ba9cb9e8a289f33cbf57e2a0e5c6c4b 100644 (file)
@@ -6,14 +6,14 @@ import unittest
 import os
 import sys
 
-from render_layer_common import *
+from view_layer_common import *
 
 
 # ############################################################
 # Testing
 # ############################################################
 
-class UnitTesting(RenderLayerTesting):
+class UnitTesting(ViewLayerTesting):
     def test_shared_layer_collections_copy_full(self):
         """
         See if scene copying 'FULL_COPY' is keeping collections visibility
@@ -32,7 +32,7 @@ class UnitTesting(RenderLayerTesting):
         new_collections = []
 
         # clean everything
-        for layer in scene.render_layers:
+        for layer in scene.view_layers:
             while layer.collections:
                 layer.collections.unlink(layer.collections[0])
 
@@ -45,7 +45,7 @@ class UnitTesting(RenderLayerTesting):
                 sub_collection = collection.collections.new("{0}:{1}".format(i, j))
 
         # link to the original scene
-        for layer in scene.render_layers:
+        for layer in scene.view_layers:
             for i, collection in enumerate(new_collections):
                 layer.collections.link(collection)
                 self.assertEqual(layer.collections[-1], layer.collections[i])
@@ -66,8 +66,8 @@ class UnitTesting(RenderLayerTesting):
         scene.update()  # update depsgraph
 
         # compare scenes
-        for h, layer in enumerate(scene.render_layers):
-            new_layer = new_scene.render_layers[h]
+        for h, layer in enumerate(scene.view_layers):
+            new_layer = new_scene.view_layers[h]
 
             for i, collection in enumerate(layer.collections):
                 new_collection = new_layer.collections[i]