test_ScriptEvents_ReturnSetTypeSuccessfully

This commit is contained in:
anugshya
2021-05-06 15:07:35 +05:30
parent 499152d23c
commit 3a3d897db7
4 changed files with 2200 additions and 0 deletions
@@ -21,6 +21,7 @@ import hydra_test_utils as hydra
import ly_test_tools.environment.file_system as file_system
from ly_test_tools import LAUNCHERS
from base import TestAutomationBase
import ly_test_tools.environment.process_utils as process_utils
TEST_DIRECTORY = os.path.dirname(__file__)
@@ -183,6 +184,17 @@ class TestAutomation(TestAutomationBase):
from . import ScriptEvents_SendReceiveSuccessfully as test_module
self._run_test(request, workspace, editor, test_module)
@pytest.mark.test_case_id("T92569006")
@pytest.mark.parametrize("level", ["tmp_level"])
def test_ScriptEvents_ReturnSetTypeSuccessfully(self, request, workspace, editor, launcher_platform, project, level):
def teardown():
file_system.delete([os.path.join(workspace.paths.project(), "Levels", level)], True, True)
request.addfinalizer(teardown)
file_system.delete([os.path.join(workspace.paths.project(), "Levels", level)], True, True)
from . import ScriptEvents_ReturnSetTypeSuccessfully as test_module
self._run_test(request, workspace, editor, test_module)
# NOTE: We had to use hydra_test_utils.py, as TestAutomationBase run_test method
# fails because of pyside_utils import
@pytest.mark.SUITE_periodic