12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- # ############################################################
- # Importing - Same For All Render Layer Tests
- # ############################################################
- import unittest
- import os
- import sys
- from view_layer_common import *
- # ############################################################
- # Testing
- # ############################################################
- class UnitTesting(MoveLayerCollectionTesting):
- def get_reference_scene_tree_map(self):
- # original tree, no changes
- reference_tree_map = [
- ['A', [
- ['i', None],
- ['ii', None],
- ['iii', None],
- ]],
- ['B', None],
- ['C', [
- ['1', None],
- ['2', None],
- ['3', [
- ['dog', None],
- ['cat', None],
- ]],
- ]],
- ]
- return reference_tree_map
- def get_reference_layers_tree_map(self):
- # original tree, no changes
- reference_layers_map = [
- ['Layer 1', [
- 'Master Collection',
- 'C',
- '3',
- ]],
- ['Layer 2', [
- 'C',
- '3',
- 'dog',
- 'cat',
- ]],
- ]
- return reference_layers_map
- def test_layer_collection_into(self):
- """
- Test outliner operations
- """
- self.setup_tree()
- self.assertFalse(self.move_into("Layer 1.C.2", "Layer 2.3"))
- self.compare_tree_maps()
- # ############################################################
- # Main - Same For All Render Layer Tests
- # ############################################################
- if __name__ == '__main__':
- UnitTesting._extra_arguments = setup_extra_arguments(__file__)
- unittest.main()
|