Changeset View
Changeset View
Standalone View
Standalone View
tests/python/view_layer/test_collection_rename.py
- This file was moved from tests/python/render_layer/test_collection_rename.py.
| # ############################################################ | # ############################################################ | ||||
| # Importing - Same For All Render Layer Tests | # Importing - Same For All Render Layer Tests | ||||
| # ############################################################ | # ############################################################ | ||||
| import unittest | import unittest | ||||
| import os | import os | ||||
| import sys | import sys | ||||
| from render_layer_common import * | from view_layer_common import * | ||||
| # ############################################################ | # ############################################################ | ||||
| # Testing | # Testing | ||||
| # ############################################################ | # ############################################################ | ||||
| class UnitTesting(RenderLayerTesting): | class UnitTesting(ViewLayerTesting): | ||||
| def setup_family(self): | def setup_family(self): | ||||
| import bpy | import bpy | ||||
| scene = bpy.context.scene | scene = bpy.context.scene | ||||
| # Just add a bunch of collections on which we can do various tests. | # Just add a bunch of collections on which we can do various tests. | ||||
| grandma = scene.master_collection.collections.new('grandma') | grandma = scene.master_collection.collections.new('grandma') | ||||
| grandpa = scene.master_collection.collections.new('grandpa') | grandpa = scene.master_collection.collections.new('grandpa') | ||||
| mom = grandma.collections.new('mom') | mom = grandma.collections.new('mom') | ||||
| ▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines | |||||