Unittest: Update background set test to test for proper flag

This test will fail until depsgraph is fixed.
But introduced on 87c821ff26.
This commit is contained in:
Dalai Felinto 2017-11-24 11:40:52 -02:00
parent 4493d0d085
commit dc2ae8fdf2
1 changed files with 5 additions and 7 deletions

View File

@ -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