Convert automated tests related to content and unused levels (#7416)
* Convert automated tests related to content/WaterSample level/Physics's Base level Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com> * Fix nits Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com> * Add missing .prefab level file Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com> * Fix nits Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com> * Convert Blast tests Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com> * Convert scripting tests Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com> * Remove useless comments Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com> * Revert Collider_AddColliderComponent change until prefab error message bug fixed Signed-off-by: chiyenteng <82238204+chiyenteng@users.noreply.github.com>
This commit is contained in:
+3
-2
@@ -57,6 +57,8 @@ def Material_LibraryClearingAssignsDefault():
|
||||
from editor_python_test_tools.utils import TestHelper as helper
|
||||
from editor_python_test_tools.asset_utils import Asset
|
||||
|
||||
import editor_python_test_tools.hydra_editor_utils as hydra
|
||||
|
||||
# Open 3D Engine Imports
|
||||
import azlmbr.asset as azasset
|
||||
|
||||
@@ -66,9 +68,8 @@ def Material_LibraryClearingAssignsDefault():
|
||||
default_material_path = os.path.join("assets", "physics", "surfacetypemateriallibrary.physmaterial")
|
||||
new_material_path = os.path.join("physicssurfaces", "default_phys_materials.physmaterial")
|
||||
|
||||
helper.init_idle()
|
||||
# 1) Load the level
|
||||
helper.open_level("Physics", "Base")
|
||||
hydra.open_base_level()
|
||||
|
||||
# 2) Create new Entity with PhysX Character Controller
|
||||
test_entity = EditorEntity.create_editor_entity("TestEntity")
|
||||
|
||||
Reference in New Issue
Block a user