diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-11-24 16:40:52 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-11-24 16:42:28 +0300 |
commit | dc2ae8fdf2a28821b337acbc1a592506ad2674c6 (patch) | |
tree | 9e9ce5731579eb0f7ba4d58c7fc295521b8aac30 /tests/python/view_layer | |
parent | 4493d0d085b0ba37e069d1129004d54e98f31231 (diff) |
Unittest: Update background set test to test for proper flag
This test will fail until depsgraph is fixed.
But introduced on 87c821ff26be.
Diffstat (limited to 'tests/python/view_layer')
-rw-r--r-- | tests/python/view_layer/test_background_set.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/python/view_layer/test_background_set.py b/tests/python/view_layer/test_background_set.py index a227d4d189c..5f1d31e823f 100644 --- a/tests/python/view_layer/test_background_set.py +++ b/tests/python/view_layer/test_background_set.py @@ -42,13 +42,11 @@ class UnitTesting(ViewLayerTesting): # Test if objects were properly added to depsgraph. self.assertEqual(3, len(bpy.context.depsgraph.objects)) - # At this point the ideal would be to be able to check if - # the objects are not selected and their relationship line - # and origin is not visible. - # - # However we can't check this from the current API - # so we either do image comparison, expand the API - # (won't work relationship lines) or leave as it is. + # We now check if the objects are properly flagged as from set + # These objects can't be possible nor show their origins or + # relationship lines + for ob in bpy.context.depsgraph.objects: + self.assertTrue(ob.is_from_set) # Test if removing is working fine. main_scene.background_set = None |