Unittests: Layer render settings evaluation
More failing unittests to add to the existing ones.
This commit is contained in:
@@ -69,6 +69,9 @@ RENDER_LAYER_TEST(evaluation_render_settings_d)
|
|||||||
RENDER_LAYER_TEST(evaluation_render_settings_e)
|
RENDER_LAYER_TEST(evaluation_render_settings_e)
|
||||||
RENDER_LAYER_TEST(evaluation_render_settings_f)
|
RENDER_LAYER_TEST(evaluation_render_settings_f)
|
||||||
RENDER_LAYER_TEST(evaluation_render_settings_g)
|
RENDER_LAYER_TEST(evaluation_render_settings_g)
|
||||||
|
RENDER_LAYER_TEST(evaluation_render_settings_h)
|
||||||
|
RENDER_LAYER_TEST(evaluation_render_settings_i)
|
||||||
|
RENDER_LAYER_TEST(evaluation_render_settings_j)
|
||||||
RENDER_LAYER_TEST(evaluation_visibility_a)
|
RENDER_LAYER_TEST(evaluation_visibility_a)
|
||||||
RENDER_LAYER_TEST(evaluation_visibility_b)
|
RENDER_LAYER_TEST(evaluation_visibility_b)
|
||||||
RENDER_LAYER_TEST(evaluation_visibility_c)
|
RENDER_LAYER_TEST(evaluation_visibility_c)
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# ############################################################
|
||||||
|
# Importing - Same For All Render Layer Tests
|
||||||
|
# ############################################################
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from render_layer_common import *
|
||||||
|
|
||||||
|
|
||||||
|
# ############################################################
|
||||||
|
# Testing
|
||||||
|
# ############################################################
|
||||||
|
|
||||||
|
class UnitTesting(RenderLayerTesting):
|
||||||
|
def test_render_settings(self):
|
||||||
|
"""
|
||||||
|
See if the depsgraph evaluation is correct
|
||||||
|
"""
|
||||||
|
clay = Clay()
|
||||||
|
self.assertEqual(clay.get('object', 'matcap_icon'), '01')
|
||||||
|
|
||||||
|
clay.set('mom', 'matcap_icon', '02')
|
||||||
|
self.assertEqual(clay.get('object', 'matcap_icon'), '02')
|
||||||
|
|
||||||
|
|
||||||
|
# ############################################################
|
||||||
|
# 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()
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# ############################################################
|
||||||
|
# Importing - Same For All Render Layer Tests
|
||||||
|
# ############################################################
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from render_layer_common import *
|
||||||
|
|
||||||
|
|
||||||
|
# ############################################################
|
||||||
|
# Testing
|
||||||
|
# ############################################################
|
||||||
|
|
||||||
|
class UnitTesting(RenderLayerTesting):
|
||||||
|
def test_render_settings(self):
|
||||||
|
"""
|
||||||
|
See if the depsgraph evaluation is correct
|
||||||
|
"""
|
||||||
|
clay = Clay(extra_kid_layer=True)
|
||||||
|
self.assertEqual(clay.get('object', 'matcap_icon'), '01')
|
||||||
|
|
||||||
|
clay.set('mom', 'matcap_icon', '02')
|
||||||
|
self.assertEqual(clay.get('object', 'matcap_icon'), '02')
|
||||||
|
|
||||||
|
|
||||||
|
# ############################################################
|
||||||
|
# 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()
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
# ############################################################
|
||||||
|
# Importing - Same For All Render Layer Tests
|
||||||
|
# ############################################################
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
from render_layer_common import *
|
||||||
|
|
||||||
|
|
||||||
|
# ############################################################
|
||||||
|
# Testing
|
||||||
|
# ############################################################
|
||||||
|
|
||||||
|
class UnitTesting(RenderLayerTesting):
|
||||||
|
def test_render_settings(self):
|
||||||
|
"""
|
||||||
|
See if the depsgraph evaluation is correct
|
||||||
|
"""
|
||||||
|
clay = Clay(extra_kid_layer=True)
|
||||||
|
self.assertEqual(clay.get('object', 'matcap_icon'), '01')
|
||||||
|
|
||||||
|
clay.set('mom', 'matcap_icon', '02')
|
||||||
|
self.assertEqual(clay.get('extra', 'matcap_icon'), '01')
|
||||||
|
self.assertEqual(clay.get('object', 'matcap_icon'), '02')
|
||||||
|
|
||||||
|
|
||||||
|
# ############################################################
|
||||||
|
# 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()
|
||||||
Reference in New Issue
Block a user