Standarization: Python files

Signed-off-by: ANT\aljanru <aljanru@amazon.co.uk>
This commit is contained in:
ANT\aljanru
2021-09-05 19:52:11 +02:00
parent c33dd26ff9
commit 4220c52330
178 changed files with 959 additions and 1579 deletions
@@ -23,10 +23,10 @@ class TestAutomation(TestAutomationBase):
use_null_renderer = False # Use default renderer (needs gpu)
def test_C18977329_NvCloth_AddClothSimulationToMesh(self, request, workspace, editor, launcher_platform):
from . import C18977329_NvCloth_AddClothSimulationToMesh as test_module
def test_NvCloth_AddClothSimulationToMesh(self, request, workspace, editor, launcher_platform):
from . import NvCloth_AddClothSimulationToMesh as test_module
self._run_test(request, workspace, editor, test_module, use_null_renderer = self.use_null_renderer)
def test_C18977330_NvCloth_AddClothSimulationToActor(self, request, workspace, editor, launcher_platform):
from . import C18977330_NvCloth_AddClothSimulationToActor as test_module
def test_NvCloth_AddClothSimulationToActor(self, request, workspace, editor, launcher_platform):
from . import NvCloth_AddClothSimulationToActor as test_module
self._run_test(request, workspace, editor, test_module, use_null_renderer = self.use_null_renderer)
@@ -15,7 +15,7 @@ class Tests:
exit_game_mode = ("Exited game mode", "Failed to exit game mode")
# fmt: on
def C18977330_NvCloth_AddClothSimulationToActor():
def NvCloth_AddClothSimulationToActor():
"""
Summary:
Load level with Entity having Actor and Cloth components already setup. Verify that editor remains stable in Game mode.
@@ -53,7 +53,7 @@ def C18977330_NvCloth_AddClothSimulationToActor():
helper.init_idle()
# 1) Load the level
helper.open_level("NvCloth", "C18977330_NvCloth_AddClothSimulationToActor")
helper.open_level("NvCloth", "NvCloth_AddClothSimulationToActor")
# 2) Start the Tracer to catch any errors and warnings
with Tracer() as section_tracer:
@@ -81,4 +81,4 @@ def C18977330_NvCloth_AddClothSimulationToActor():
if __name__ == "__main__":
from editor_python_test_tools.utils import Report
Report.start_test(C18977330_NvCloth_AddClothSimulationToActor)
Report.start_test(NvCloth_AddClothSimulationToActor)
@@ -15,7 +15,7 @@ class Tests:
exit_game_mode = ("Exited game mode", "Failed to exit game mode")
# fmt: on
def C18977329_NvCloth_AddClothSimulationToMesh():
def NvCloth_AddClothSimulationToMesh():
"""
Summary:
Load level with Entity having Mesh and Cloth components already setup. Verify that editor remains stable in Game mode.
@@ -53,7 +53,7 @@ def C18977329_NvCloth_AddClothSimulationToMesh():
helper.init_idle()
# 1) Load the level
helper.open_level("NvCloth", "C18977329_NvCloth_AddClothSimulationToMesh")
helper.open_level("NvCloth", "NvCloth_AddClothSimulationToMesh")
# 2) Start the Tracer to catch any errors and warnings
with Tracer() as section_tracer:
@@ -81,4 +81,4 @@ def C18977329_NvCloth_AddClothSimulationToMesh():
if __name__ == "__main__":
from editor_python_test_tools.utils import Report
Report.start_test(C18977329_NvCloth_AddClothSimulationToMesh)
Report.start_test(NvCloth_AddClothSimulationToMesh)