Moving hydra util files into a package

This commit is contained in:
evanchia
2021-04-19 16:31:05 -07:00
parent 14f7883425
commit c1e3e0fe5e
309 changed files with 936 additions and 806 deletions
@@ -34,8 +34,8 @@ def C100000_RigidBody_EnablingGravityWorksPoC():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -84,5 +84,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C100000_RigidBody_EnablingGravityWorksPoC)
@@ -34,8 +34,8 @@ def C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -93,5 +93,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C111111_RigidBody_EnablingGravityWorksUsingNotificationsPoC)
@@ -76,14 +76,13 @@ def C12712452_ScriptCanvas_CollisionEvents():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus
import azlmbr.components
import azlmbr.entity
import azlmbr.physics
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
# Constants
TIME_OUT_SECONDS = 3.0
@@ -209,5 +208,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C12712452_ScriptCanvas_CollisionEvents)
@@ -81,8 +81,8 @@ def C12712453_ScriptCanvas_MultipleRaycastNode():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -203,6 +203,6 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
# Disabled until Script Canvas merges the new backend
#Report.start_test(C12712453_ScriptCanvas_MultipleRaycastNode)
@@ -106,9 +106,8 @@ def C12712454_ScriptCanvas_OverlapNodeVerification():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -328,5 +327,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C12712454_ScriptCanvas_OverlapNodeVerification)
@@ -76,9 +76,8 @@ def C12712455_ScriptCanvas_ShapeCastVerification():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -145,5 +144,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C12712455_ScriptCanvas_ShapeCastVerification)
@@ -95,9 +95,8 @@ def C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -291,5 +290,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C12868578_ForceRegion_DirectionHasNoAffectOnMagnitude)
@@ -83,8 +83,8 @@ def C12868580_ForceRegion_SplineModifiedTransform():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import itertools
import azlmbr
@@ -175,5 +175,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C12868580_ForceRegion_SplineModifiedTransform)
@@ -63,8 +63,8 @@ def C12905527_ForceRegion_MagnitudeDeviation():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -150,5 +150,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C12905527_ForceRegion_MagnitudeDeviation)
@@ -50,11 +50,12 @@ def run():
# Helper file Imports
import ImportPathHelper as imports
from editor_python_test_tools.editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import Report
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import Tracer
from editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Tracer
helper.init_idle()
# 1) Load the empty level
@@ -64,9 +64,8 @@ def C13351703_COM_NotIncludeTriggerShapes():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -101,5 +100,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C13351703_COM_NotIncludeTriggerShapes)
@@ -131,8 +131,8 @@ def C13352089_RigidBodies_MaxAngularVelocity():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.math as lymath
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -288,5 +288,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C13352089_RigidBodies_MaxAngularVelocity)
@@ -48,7 +48,8 @@ def C13508019_Terrain_TerrainTexturePainterWorks():
imports.init()
from utils import Report, TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -143,5 +144,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C13508019_Terrain_TerrainTexturePainterWorks)
@@ -67,9 +67,8 @@ def C13895144_Ragdoll_ChangeLevel():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
@@ -112,5 +111,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C13895144_Ragdoll_ChangeLevel)
@@ -70,9 +70,8 @@ def C14195074_ScriptCanvas_PostUpdateEvent():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -190,5 +189,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14195074_ScriptCanvas_PostUpdateEvent)
@@ -62,8 +62,8 @@ def C14654881_CharacterController_SwitchLevels():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -100,5 +100,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14654881_CharacterController_SwitchLevels)
@@ -78,9 +78,8 @@ def C14654882_Ragdoll_ragdollAPTest():
imports.init()
from utils import TestHelper as helper
from utils import Report
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
helper.init_idle()
@@ -137,5 +136,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14654882_Ragdoll_ragdollAPTest)
@@ -57,9 +57,9 @@ def C14861498_ConfirmError_NoPxMesh():
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import Tracer
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Tracer
import azlmbr.legacy.general as general
@@ -92,5 +92,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14861498_ConfirmError_NoPxMesh)
@@ -47,9 +47,9 @@ def C14861500_DefaultSetting_ColliderShape():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
# Open 3D Engine Imports
import azlmbr.legacy.general as general
@@ -77,5 +77,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14861500_DefaultSetting_ColliderShape)
@@ -55,9 +55,9 @@ def run():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from asset_utils import Asset
# Asset paths
@@ -54,9 +54,9 @@ def C14861502_PhysXCollider_AssetAutoAssigned():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from asset_utils import Asset
# Open 3D Engine Imports
@@ -100,5 +100,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14861502_PhysXCollider_AssetAutoAssigned)
@@ -59,10 +59,10 @@ def run():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import Tracer
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Tracer
from asset_utils import Asset
# Open 3D Engine Imports
@@ -72,9 +72,8 @@ def C14902097_ScriptCanvas_PreUpdateEvent():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -197,5 +196,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14902097_ScriptCanvas_PreUpdateEvent)
@@ -84,9 +84,8 @@ def C14902098_ScriptCanvas_PostPhysicsUpdate():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
@@ -118,5 +117,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14902098_ScriptCanvas_PostPhysicsUpdate)
@@ -69,9 +69,8 @@ def C14976307_Gravity_SetGravityWorks():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -130,5 +129,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14976307_Gravity_SetGravityWorks)
@@ -100,14 +100,13 @@ def C14976308_ScriptCanvas_SetKinematicTargetTransform():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus
import azlmbr.components
import azlmbr.math
import azlmbr.physics
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import itertools
class Entity:
@@ -228,5 +227,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C14976308_ScriptCanvas_SetKinematicTargetTransform)
@@ -108,9 +108,8 @@ def C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -293,5 +292,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15096732_Material_DefaultLibraryUpdatedAcrossLevels_after)
@@ -101,9 +101,8 @@ def C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -245,5 +244,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15096732_Material_DefaultLibraryUpdatedAcrossLevels_before)
@@ -149,8 +149,8 @@ def C15096735_Materials_DefaultLibraryConsistency():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -424,5 +424,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15096735_Materials_DefaultLibraryConsistency)
@@ -115,9 +115,8 @@ def C15096737_Materials_DefaultMaterialLibraryChanges():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
from Physmaterial_Editor import Physmaterial_Editor
@@ -301,5 +300,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15096737_Materials_DefaultMaterialLibraryChanges)
@@ -58,9 +58,9 @@ def C15096740_Material_LibraryUpdatedCorrectly():
imports.init()
# Helper file Imports
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity
from editor_python_test_tools.editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from asset_utils import Asset
# Open 3D Engine Imports
@@ -107,5 +107,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15096740_Material_LibraryUpdatedCorrectly)
@@ -71,9 +71,8 @@ def C15308217_NoCrash_LevelSwitch():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -114,5 +113,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15308217_NoCrash_LevelSwitch)
@@ -114,7 +114,6 @@ def C15308221_Material_ComponentsInSyncWithLibrary():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus as bus
import azlmbr.components
@@ -122,8 +121,8 @@ def C15308221_Material_ComponentsInSyncWithLibrary():
import azlmbr.math as lymath
from Physmaterial_Editor import Physmaterial_Editor
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
TIMEOUT = 3.0
BOUNCE_TOLERANCE = 0.1
@@ -252,5 +251,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15308221_Material_ComponentsInSyncWithLibrary)
@@ -53,10 +53,9 @@ def C15425929_Undo_Redo():
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import Tracer
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Tracer
import azlmbr.legacy.general as general
@@ -99,5 +98,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15425929_Undo_Redo)
@@ -122,8 +122,8 @@ def C15425935_Material_LibraryUpdatedAcrossLevels():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -314,5 +314,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15425935_Material_LibraryUpdatedAcrossLevels)
@@ -88,8 +88,8 @@ def C15556261_PhysXMaterials_CharacterControllerMaterialAssignment():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -209,5 +209,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15556261_PhysXMaterials_CharacterControllerMaterialAssignment)
@@ -116,14 +116,13 @@ def C15563573_Material_AddModifyDeleteOnCharacterController():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.math as lymath
from Physmaterial_Editor import Physmaterial_Editor
from utils import Report
from utils import TestHelper as helper
from AddModifyDelete_Utils import Box
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
FORCE_IMPULSE = lymath.Vector3(5.0, 0.0, 0.0)
TIMEOUT = 3.0
@@ -205,5 +204,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15563573_Material_AddModifyDeleteOnCharacterController)
@@ -65,9 +65,8 @@ def C15845879_ForceRegion_HighLinearDampingForce():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -177,5 +176,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C15845879_ForceRegion_HighLinearDampingForce)
@@ -53,10 +53,10 @@ def run():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import Tracer
from editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Tracer
helper.init_idle()
# 1) Load the level
@@ -58,9 +58,8 @@ def C18243580_Joints_Fixed2BodiesConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -107,5 +106,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243580_Joints_Fixed2BodiesConstrained)
@@ -57,9 +57,8 @@ def C18243581_Joints_FixedBreakable():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -106,5 +105,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243581_Joints_FixedBreakable)
@@ -59,9 +59,8 @@ def C18243582_Joints_FixedLeadFollowerCollide():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -101,5 +100,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243582_Joints_FixedLeadFollowerCollide)
@@ -61,9 +61,8 @@ def C18243583_Joints_Hinge2BodiesConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -124,5 +123,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243583_Joints_Hinge2BodiesConstrained)
@@ -61,9 +61,8 @@ def C18243584_Joints_HingeSoftLimitsConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -120,5 +119,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243584_Joints_HingeSoftLimitsConstrained)
@@ -61,9 +61,8 @@ def C18243585_Joints_HingeNoLimitsConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -120,5 +119,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243585_Joints_HingeNoLimitsConstrained)
@@ -58,9 +58,8 @@ def C18243586_Joints_HingeLeadFollowerCollide():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -100,5 +99,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243586_Joints_HingeLeadFollowerCollide)
@@ -59,9 +59,8 @@ def C18243587_Joints_HingeBreakable():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -118,5 +117,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243587_Joints_HingeBreakable)
@@ -60,9 +60,8 @@ def C18243588_Joints_Ball2BodiesConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -122,5 +121,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243588_Joints_Ball2BodiesConstrained)
@@ -62,9 +62,8 @@ def C18243589_Joints_BallSoftLimitsConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -123,5 +122,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243589_Joints_BallSoftLimitsConstrained)
@@ -63,9 +63,8 @@ def C18243590_Joints_BallNoLimitsConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -121,5 +120,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243590_Joints_BallNoLimitsConstrained)
@@ -58,9 +58,8 @@ def C18243591_Joints_BallLeadFollowerCollide():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -100,5 +99,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243591_Joints_BallLeadFollowerCollide)
@@ -58,9 +58,8 @@ def C18243592_Joints_BallBreakable():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -116,5 +115,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243592_Joints_BallBreakable)
@@ -62,9 +62,8 @@ def C18243593_Joints_GlobalFrameConstrained():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -129,5 +128,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18243593_Joints_GlobalFrameConstrained)
@@ -136,8 +136,8 @@ def C18977601_Material_FrictionCombinePriority():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -364,5 +364,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18977601_Material_FrictionCombinePriority)
@@ -135,9 +135,8 @@ def C18981526_Material_RestitutionCombinePriority():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -425,5 +424,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C18981526_Material_RestitutionCombinePriority)
@@ -50,9 +50,9 @@ def run():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import TestHelper as helper
ACTIVE_STATUS = azlmbr.globals.property.EditorEntityStartStatus_StartActive
@@ -50,9 +50,9 @@ def run():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import TestHelper as helper
ACTIVE_STATUS = azlmbr.globals.property.EditorEntityStartStatus_StartActive
@@ -56,9 +56,9 @@ def C19578018_ShapeColliderWithNoShapeComponent():
imports.init()
# Helper Imports
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import TestHelper as helper
# Open 3D Engine Imports
import azlmbr.bus as bus
@@ -99,5 +99,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C19578018_ShapeColliderWithNoShapeComponent)
@@ -51,10 +51,10 @@ def C19578021_ShapeCollider_CanBeAdded():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import Tracer
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Tracer
# Open 3D Engine Imports
import azlmbr.legacy.general as general
@@ -97,5 +97,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C19578021_ShapeCollider_CanBeAdded)
@@ -47,9 +47,9 @@ def C19723164_ShapeColliders_WontCrashEditor():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
# Open 3D Engine Imports
import azlmbr.legacy.general as general
@@ -103,5 +103,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C19723164_ShapeColliders_WontCrashEditor)
@@ -57,8 +57,8 @@ def C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain():
import azlmbr.legacy.general as general
import azlmbr.bus
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
# Global time out
TIME_OUT = 1.0
@@ -119,5 +119,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C24308873_CylinderShapeCollider_CollidesWithPhysXTerrain)
@@ -56,9 +56,9 @@ def C28978033_Ragdoll_WorldBodyBusTests():
import azlmbr.legacy.general as general
import azlmbr.bus
from utils import Report
from utils import TestHelper as helper
from utils import vector3_str, aabb_str
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import vector3_str, aabb_str
# Global time out
TIME_OUT = 1.0
@@ -123,5 +123,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C28978033_Ragdoll_WorldBodyBusTests)
@@ -94,9 +94,9 @@ def C29032500_EditorComponents_WorldBodyBusWorks():
import azlmbr.legacy.general as general
import azlmbr.bus
import math
from utils import Report
from utils import TestHelper as helper
from utils import vector3_str, aabb_str
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import vector3_str, aabb_str
AABB_THRESHOLD = 0.01 # Entities won't move in the simulation
@@ -161,5 +161,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C29032500_EditorComponents_WorldBodyBusWorks)
@@ -74,12 +74,11 @@ def C3510642_Terrain_NotCollideWithTerrain():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
# Constants
TIMEOUT = 2.0
@@ -176,5 +175,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C3510642_Terrain_NotCollideWithTerrain)
@@ -100,8 +100,8 @@ def C3510644_Collider_CollisionGroups():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -370,5 +370,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C3510644_Collider_CollisionGroups)
@@ -182,9 +182,8 @@ def C4044455_Material_libraryChangesInstantly():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -486,5 +485,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044455_Material_libraryChangesInstantly)
@@ -100,9 +100,8 @@ def C4044456_Material_FrictionCombine():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -221,5 +220,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044456_Material_FrictionCombine)
@@ -105,9 +105,8 @@ def C4044457_Material_RestitutionCombine():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -253,5 +252,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044457_Material_RestitutionCombine)
@@ -91,9 +91,8 @@ def C4044459_Material_DynamicFriction():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -199,5 +198,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044459_Material_DynamicFriction)
@@ -89,9 +89,8 @@ def C4044460_Material_StaticFriction():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -196,5 +195,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044460_Material_StaticFriction)
@@ -96,9 +96,8 @@ def C4044461_Material_Restitution():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -238,5 +237,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044461_Material_Restitution)
@@ -75,15 +75,14 @@ def C4044694_Material_EmptyLibraryUsesDefault():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus as bus
import azlmbr.components
import azlmbr.physics
import azlmbr.math as lymath
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
FORCE_IMPULSE = lymath.Vector3(5.0, 0.0, 0.0)
TIMEOUT = 3.0
@@ -197,5 +196,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044694_Material_EmptyLibraryUsesDefault)
@@ -60,9 +60,9 @@ def run():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.editor_entity_utils import EditorEntity as Entity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from asset_utils import Asset
# Constants
@@ -116,9 +116,8 @@ def C4044697_Material_PerfaceMaterialValidation():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -310,5 +309,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4044697_Material_PerfaceMaterialValidation)
@@ -99,13 +99,12 @@ def C4888315_Material_AddModifyDeleteOnCollider():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.math as lymath
from Physmaterial_Editor import Physmaterial_Editor
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from AddModifyDelete_Utils import Box
FORCE_IMPULSE = lymath.Vector3(5.0, 0.0, 0.0)
@@ -184,5 +183,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4888315_Material_AddModifyDeleteOnCollider)
@@ -85,9 +85,8 @@ def C4925577_Materials_MaterialAssignedToTerrain():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -313,5 +312,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4925577_Materials_MaterialAssignedToTerrain)
@@ -100,13 +100,12 @@ def C4925579_Material_AddModifyDeleteOnTerrain():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.math as lymath
from Physmaterial_Editor import Physmaterial_Editor
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from AddModifyDelete_Utils import Box
FORCE_IMPULSE = lymath.Vector3(5.0, 0.0, 0.0)
@@ -184,5 +183,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4925579_Material_AddModifyDeleteOnTerrain)
@@ -75,13 +75,12 @@ def C4925580_Material_RagdollBonesMaterial():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus
import azlmbr.components
import azlmbr.physics
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
# Constants
TIME_OUT_SECONDS = 3.0
@@ -202,5 +201,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4925580_Material_RagdollBonesMaterial)
@@ -101,7 +101,6 @@ def C4925582_Material_AddModifyDeleteOnRagdollBones():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus as bus
import azlmbr.components
@@ -109,8 +108,8 @@ def C4925582_Material_AddModifyDeleteOnRagdollBones():
import azlmbr.math as lymath
from Physmaterial_Editor import Physmaterial_Editor
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
TIMEOUT = 3.0
BOUNCE_TOLERANCE = 0.05
@@ -220,5 +219,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4925582_Material_AddModifyDeleteOnRagdollBones)
@@ -62,9 +62,8 @@ def C4976194_RigidBody_PhysXComponentIsValid():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -118,5 +117,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976194_RigidBody_PhysXComponentIsValid)
@@ -67,8 +67,8 @@ def C4976195_RigidBodies_InitialLinearVelocity():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -139,5 +139,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976195_RigidBodies_InitialLinearVelocity)
@@ -80,8 +80,8 @@ def C4976197_RigidBodies_InitialAngularVelocity():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -184,5 +184,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976197_RigidBodies_InitialAngularVelocity)
@@ -65,8 +65,8 @@ def C4976199_RigidBodies_LinearDampingObjectMotion():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -277,5 +277,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976199_RigidBodies_LinearDampingObjectMotion)
@@ -69,9 +69,9 @@ def C4976200_RigidBody_AngularDampingObjectRotation():
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import AngleHelper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import AngleHelper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -292,5 +292,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976200_RigidBody_AngularDampingObjectRotation)
@@ -110,13 +110,12 @@ def C4976201_RigidBody_MassIsAssigned():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus
import azlmbr
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
MOVEMENT_TIMEOUT = 7.0
COLLISION_TIMEOUT = 2.0
@@ -381,5 +380,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976201_RigidBody_MassIsAssigned)
@@ -133,12 +133,11 @@ def C4976202_RigidBody_StopsWhenBelowKineticThreshold():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
helper.init_idle()
@@ -334,5 +333,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976202_RigidBody_StopsWhenBelowKineticThreshold)
@@ -71,9 +71,8 @@ def C4976204_Verify_Start_Asleep_Condition():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -120,5 +119,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976204_Verify_Start_Asleep_Condition)
@@ -73,8 +73,8 @@ def C4976206_RigidBodies_GravityEnabledActive():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -152,5 +152,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976206_RigidBodies_GravityEnabledActive)
@@ -70,8 +70,8 @@ def C4976207_PhysXRigidBodies_KinematicBehavior():
import azlmbr.legacy.general as general
import azlmbr.bus
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
# Specific wait times in seconds
TIME_OUT = 3.0
@@ -139,5 +139,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976207_PhysXRigidBodies_KinematicBehavior)
@@ -95,9 +95,8 @@ def C4976209_RigidBody_ComputesCOM():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr
import azlmbr.legacy.general as general
@@ -181,5 +180,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976209_RigidBody_ComputesCOM)
@@ -77,8 +77,8 @@ def C4976210_COM_ManualSetting():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
import azlmbr
@@ -305,5 +305,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976210_COM_ManualSetting)
@@ -47,13 +47,13 @@ def C4976218_RigidBodies_InertiaObjectsNotComputed():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus as bus
import azlmbr.components
import azlmbr.physics
from utils import Report, TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
class UpperBox:
def __init__(self, name):
@@ -167,5 +167,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976218_RigidBodies_InertiaObjectsNotComputed)
@@ -60,9 +60,8 @@ def C4976227_Collider_NewGroup():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -92,5 +91,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976227_Collider_NewGroup)
@@ -55,10 +55,10 @@ def C4976236_AddPhysxColliderComponent():
import ImportPathHelper as imports
imports.init()
from utils import Report
from utils import TestHelper as helper
from utils import Tracer
from editor_entity_utils import EditorEntity
from editor_python_test_tools.editor_entity_utils import EditorEntity
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
from editor_python_test_tools.utils import Tracer
from asset_utils import Asset
helper.init_idle()
@@ -103,5 +103,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976236_AddPhysxColliderComponent)
@@ -71,9 +71,8 @@ def C4976242_Collision_SameCollisionlayerSameCollisiongroup():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -196,5 +195,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976242_Collision_SameCollisionlayerSameCollisiongroup)
@@ -75,9 +75,8 @@ def C4976243_Collision_SameCollisionGroupDiffCollisionLayers():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -135,5 +134,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976243_Collision_SameCollisionGroupDiffCollisionLayers)
@@ -71,8 +71,8 @@ def C4976244_Collider_SameGroupSameLayerCollision():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -192,5 +192,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976244_Collider_SameGroupSameLayerCollision)
@@ -76,8 +76,8 @@ def C4976245_PhysXCollider_CollisionLayerTest():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -230,5 +230,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4976245_PhysXCollider_CollisionLayerTest)
@@ -76,8 +76,8 @@ def C4982593_PhysXCollider_CollisionLayerTest():
imports.init()
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
import azlmbr.legacy.general as general
import azlmbr.bus
@@ -238,5 +238,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4982593_PhysXCollider_CollisionLayerTest)
@@ -84,13 +84,12 @@ def C4982595_Collider_TriggerDisablesCollision():
imports.init()
import azlmbr.legacy.general as general
import azlmbr.bus
import azlmbr.components
import azlmbr.physics
from utils import Report
from utils import TestHelper as helper
from editor_python_test_tools.utils import Report
from editor_python_test_tools.utils import TestHelper as helper
TIME_OUT_SECONDS = 3.0
SPHERE_RADIUS = 1.0
@@ -242,5 +241,5 @@ if __name__ == "__main__":
import ImportPathHelper as imports
imports.init()
from utils import Report
from editor_python_test_tools.utils import Report
Report.start_test(C4982595_Collider_TriggerDisablesCollision)

Some files were not shown because too many files have changed in this diff Show More