diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-03-31 18:26:33 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-03-31 18:37:52 +0300 |
commit | b0998df60842f59d194163042a13cf4e0fde29d8 (patch) | |
tree | ac289a6aec54a84069279be1b41670d414649957 /tests/python/render_layer/test_scene_copy_d.py | |
parent | d9b89ca0d0c8ad87e59994ad2c8a546614f75bdb (diff) |
Layers: Fix scene copying after IDProperty changes
(also unittest: split scene copy in 4 tests)
Diffstat (limited to 'tests/python/render_layer/test_scene_copy_d.py')
-rw-r--r-- | tests/python/render_layer/test_scene_copy_d.py | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/python/render_layer/test_scene_copy_d.py b/tests/python/render_layer/test_scene_copy_d.py new file mode 100644 index 00000000000..9b75e57acaa --- /dev/null +++ b/tests/python/render_layer/test_scene_copy_d.py @@ -0,0 +1,43 @@ +# ############################################################ +# Importing - Same For All Render Layer Tests +# ############################################################ + +import unittest +import os +import sys + +sys.path.append(os.path.dirname(__file__)) +from render_layer_common import * + + +# ############################################################ +# Testing +# ############################################################ + +class UnitTesting(RenderLayerTesting): + def test_scene_layers_link(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_link.json') + self.do_scene_copy( + filepath_layers_json_copy, + 'LINK_OBJECTS', + (get_scene_collections, get_layers)) + + +# ############################################################ +# Main - Same For All Render Layer Tests +# ############################################################ + +if __name__ == '__main__': + import sys + + extra_arguments = sys.argv[sys.argv.index("--") + 1:] if "--" in sys.argv else [] + sys.argv = [__file__] + (sys.argv[sys.argv.index("--") + 2:] if "--" in sys.argv else []) + + UnitTesting._extra_arguments = extra_arguments + unittest.main() |