Changeset View
Changeset View
Standalone View
Standalone View
tests/python/view_layer/test_object_add_cylinder.py
- This file was moved from tests/python/render_layer/test_object_add_cylinder.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 test_syncing_object_add_cylinder(self): | def test_syncing_object_add_cylinder(self): | ||||
| """ | """ | ||||
| See if new objects are added to the correct collection | See if new objects are added to the correct collection | ||||
| bpy.ops.mesh.primitive_cylinder_add() | bpy.ops.mesh.primitive_cylinder_add() | ||||
| """ | """ | ||||
| import os | import os | ||||
| ROOT = self.get_root() | ROOT = self.get_root() | ||||
| filepath_json = os.path.join(ROOT, 'layers_object_add_cylinder.json') | filepath_json = os.path.join(ROOT, 'layers_object_add_cylinder.json') | ||||
| Show All 10 Lines | |||||