test cleanup and adding AtomComponentProperties
Signed-off-by: Scott Murray <scottmur@amazon.com>
This commit is contained in:
+6
-4
@@ -76,6 +76,7 @@ def AtomEditorComponents_postfx_layer_AddedToEntity():
|
||||
|
||||
from editor_python_test_tools.editor_entity_utils import EditorEntity
|
||||
from editor_python_test_tools.utils import Report, Tracer, TestHelper
|
||||
from Atom.atom_utils.atom_constants import AtomComponentProperties
|
||||
|
||||
with Tracer() as error_tracer:
|
||||
# Test setup begins.
|
||||
@@ -85,13 +86,14 @@ def AtomEditorComponents_postfx_layer_AddedToEntity():
|
||||
|
||||
# Test steps begin.
|
||||
# 1. Create a PostFX Layer entity with no components.
|
||||
postfx_layer_name = "PostFX Layer"
|
||||
postfx_layer_entity = EditorEntity.create_editor_entity(postfx_layer_name)
|
||||
postfx_layer_entity = EditorEntity.create_editor_entity(AtomComponentProperties.postfx_layer())
|
||||
Report.critical_result(Tests.postfx_layer_entity_creation, postfx_layer_entity.exists())
|
||||
|
||||
# 2. Add a PostFX Layer component to PostFX Layer entity.
|
||||
postfx_layer_component = postfx_layer_entity.add_component(postfx_layer_name)
|
||||
Report.critical_result(Tests.postfx_layer_component_added, postfx_layer_entity.has_component(postfx_layer_name))
|
||||
postfx_layer_component = postfx_layer_entity.add_component(AtomComponentProperties.postfx_layer())
|
||||
Report.critical_result(
|
||||
Tests.postfx_layer_component_added,
|
||||
postfx_layer_entity.has_component(AtomComponentProperties.postfx_layer()))
|
||||
|
||||
# 3. UNDO the entity creation and component addition.
|
||||
# -> UNDO component addition.
|
||||
|
||||
Reference in New Issue
Block a user