Rename any instance of scene layer or render layer in code with view layer
[blender.git] / tests / python / view_layer / test_scene_copy_e.py
similarity index 88%
rename from tests/python/render_layer/test_scene_copy_e.py
rename to tests/python/view_layer/test_scene_copy_e.py
index 8e1afb1b2ea511f0fb7b05b76e921d4f09d86944..23d01b6a84b6500235b514ea272c3c53601abc39 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 working for scene collections
@@ -23,14 +23,14 @@ class UnitTesting(RenderLayerTesting):
         import bpy
 
         scene = bpy.context.scene
-        layer = bpy.context.render_layer
+        layer = bpy.context.view_layer
 
         original_cube = layer.objects.get('Cube')
         original_cube.select_set('SELECT')
         self.assertTrue(original_cube.select_get())
 
         bpy.ops.scene.new(type='FULL_COPY')
-        new_layer = bpy.context.render_layer
+        new_layer = bpy.context.view_layer
 
         self.assertNotEqual(layer, new_layer)
         new_cube = new_layer.objects.get('Cube.001')