Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2018-01-02 22:42:20 +0300
committerDalai Felinto <dfelinto@gmail.com>2018-01-02 22:42:23 +0300
commit8300b5e53987b650c0edd03b892dee1f7da94a0d (patch)
tree56d411f7855dada2858ed195c3d6a938b174052a /tests/python/view_layer
parentf3566235ca1e8886328f213013452e12fe4be836 (diff)
Layers: Fix operator_context unittest
This was broken since 70cdc8412c478b when we changed the requirement for context scene collection to be part of context view layer.
Diffstat (limited to 'tests/python/view_layer')
-rw-r--r--tests/python/view_layer/test_operator_context.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/python/view_layer/test_operator_context.py b/tests/python/view_layer/test_operator_context.py
index ff751bc0fa5..34f46c963bb 100644
--- a/tests/python/view_layer/test_operator_context.py
+++ b/tests/python/view_layer/test_operator_context.py
@@ -114,11 +114,14 @@ class UnitTesting(ViewLayerTesting):
override = bpy.context.copy()
override["view_layer"] = layer
+ self.assertNotEqual(bpy.context.view_layer.name, layer.name)
+ self.assertNotEqual(bpy.context.scene_collection.name, layer.collections.active.name)
+
self.assertEqual(bpy.ops.testing.sample(
override,
view_layer=layer.name,
scene_collection=layer.collections.active.name, # 'scorpion'
- use_verbose=True), {'FINISHED'})
+ use_verbose=False), {'CANCELLED'})
# ############################################################