[Bf-blender-cvs] [95d3aac8466] soc-2020-testing-frameworks: Added comment for not comparing in run-test and message

Himanshi Kalra noreply at git.blender.org
Sun Sep 6 11:59:49 CEST 2020


Commit: 95d3aac8466f31d611058a12798067301e5f82d4
Author: Himanshi Kalra
Date:   Wed Sep 2 01:56:50 2020 +0530
Branches: soc-2020-testing-frameworks
https://developer.blender.org/rB95d3aac8466f31d611058a12798067301e5f82d4

Added comment for not comparing in run-test and message

===================================================================

M	tests/python/modules/mesh_test.py

===================================================================

diff --git a/tests/python/modules/mesh_test.py b/tests/python/modules/mesh_test.py
index dbf3055a0d0..c19ff3c7e99 100644
--- a/tests/python/modules/mesh_test.py
+++ b/tests/python/modules/mesh_test.py
@@ -460,7 +460,7 @@ class MeshTest:
         if retval != {'FINISHED'}:
             raise RuntimeError("Unexpected operator return value: {}".format(retval))
         if self.verbose:
-            print("Applied operator {}".format(operator))
+            print("Applied {}".format(operator))
 
         bpy.ops.object.mode_set(mode='OBJECT')
 
@@ -557,6 +557,7 @@ class MeshTest:
                                         type(OperatorSpecObjectMode), type(ParticleSystemSpec), type(operation)))
 
         # Compare resulting mesh with expected one.
+        # Compare only when self.modifier is set to True, if modifiers are not applied test will always fail
         if self.apply_modifier:
             if self.verbose:
                 print("Comparing expected mesh with resulting mesh...")
@@ -585,7 +586,8 @@ class MeshTest:
             else:
                 return self._on_failed_test(compare_result, validation_success, evaluated_test_object)
         else:
-            print("Just visualizing")
+            print("Meshes/objects are not compared, compare evaluated and expected object in Blender for "
+                  "visualization.")
 
 
 class RunTest:



More information about the Bf-blender-cvs mailing list