forked from bartvdbraak/blender
b6b1e0f56c
The ClayEngine was introduced to test the blender2.8 architecture during development. As currently we have the wanted features implemented with matcaps we are going to remove the clay engine as it was never intended to be an official releasable engine Note: The test cases are never run. But when enabled will be skipped as they were implemented over the Clay Engine
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
# ############################################################
|
|
# Importing - Same For All Render Layer Tests
|
|
# ############################################################
|
|
|
|
import unittest
|
|
import os
|
|
import sys
|
|
|
|
from view_layer_common import *
|
|
|
|
|
|
# ############################################################
|
|
# Testing
|
|
# ############################################################
|
|
|
|
class UnitTesting(ViewLayerTesting):
|
|
@unittest.skip("Uses the clay engine, that is removed T55454")
|
|
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__':
|
|
UnitTesting._extra_arguments = setup_extra_arguments(__file__)
|
|
unittest.main()
|