2017-03-31 15:26:33 +00:00
|
|
|
# ############################################################
|
|
|
|
# Importing - Same For All Render Layer Tests
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
import unittest
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
2017-11-22 12:52:39 +00:00
|
|
|
from view_layer_common import *
|
2017-03-31 15:26:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
# Testing
|
|
|
|
# ############################################################
|
|
|
|
|
2017-11-22 12:52:39 +00:00
|
|
|
class UnitTesting(ViewLayerTesting):
|
2017-03-31 15:26:33 +00:00
|
|
|
def test_scene_layers_copy(self):
|
|
|
|
"""
|
|
|
|
See if scene copying 'FULL_COPY' is working for scene layers
|
|
|
|
"""
|
|
|
|
import os
|
|
|
|
ROOT = self.get_root()
|
|
|
|
|
|
|
|
filepath_layers_json_copy = os.path.join(ROOT, 'layers_copy_full.json')
|
|
|
|
self.do_scene_copy(
|
2018-07-03 05:12:24 +00:00
|
|
|
filepath_layers_json_copy,
|
|
|
|
'FULL_COPY',
|
|
|
|
(get_scene_collections, get_layers))
|
2017-03-31 15:26:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
# ############################################################
|
|
|
|
# Main - Same For All Render Layer Tests
|
|
|
|
# ############################################################
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2017-06-19 06:12:11 +00:00
|
|
|
UnitTesting._extra_arguments = setup_extra_arguments(__file__)
|
2017-03-31 15:26:33 +00:00
|
|
|
unittest.main()
|