Tests: Print when mesh test starts, to help debugging crashes

This commit is contained in:
Hans Goudey 2022-12-20 12:02:05 -06:00
parent 7907803694
commit 99fcfdd9fb
1 changed files with 3 additions and 2 deletions

View File

@ -238,6 +238,7 @@ class MeshTest(ABC):
"""
Runs a single test, runs it again if test file is updated.
"""
print("\nSTART {} test.".format(self.test_name))
self.create_evaluated_object()
self.apply_operations(self.evaluated_object.name)
@ -289,14 +290,14 @@ class MeshTest(ABC):
"""
Print results for failed test.
"""
print("\nFAILED {} test with the following: ".format(self.test_name))
print("FAILED {} test with the following: ".format(self.test_name))
self._print_result(result)
def print_passed_test_result(self, result):
"""
Print results for passing test.
"""
print("\nPASSED {} test successfully.".format(self.test_name))
print("PASSED {} test successfully.".format(self.test_name))
self._print_result(result)
def do_selection(self, mesh: bpy.types.Mesh, select_mode: str, selection, select_history: bool):