diff --git a/src/ansys/fluent/core/services/datamodel_se.py b/src/ansys/fluent/core/services/datamodel_se.py index 78f2cd12e05..ccb9d9b72d7 100644 --- a/src/ansys/fluent/core/services/datamodel_se.py +++ b/src/ansys/fluent/core/services/datamodel_se.py @@ -1629,7 +1629,7 @@ def create_instance(self) -> Optional["PyCommandArguments"]: self.command, self.path.copy(), id, - static_info["args"], + static_info.get("args"), ) except RuntimeError: logger.warning( diff --git a/tests/test_new_meshing_workflow.py b/tests/test_new_meshing_workflow.py index b8941a585ec..86c173b1cef 100644 --- a/tests/test_new_meshing_workflow.py +++ b/tests/test_new_meshing_workflow.py @@ -5,6 +5,7 @@ from ansys.fluent.core import examples from ansys.fluent.core.meshing.watertight import watertight_workflow +from ansys.fluent.core.utils.fluent_version import FluentVersion @pytest.mark.nightly @@ -520,7 +521,6 @@ def test_snake_case_attrs_in_new_meshing_workflow(new_mesh_session): watertight.import_geometry() -@pytest.mark.skip("https://github.com/ansys/pyfluent/issues/2569") @pytest.mark.codegen_required @pytest.mark.fluent_version(">=24.1") def test_workflow_and_data_model_methods_new_meshing_workflow(new_mesh_session): @@ -545,12 +545,19 @@ def test_workflow_and_data_model_methods_new_meshing_workflow(new_mesh_session): watertight.task("import_geom_wtm").file_name = import_file_name watertight.task("import_geom_wtm").length_unit = "in" watertight.task("import_geom_wtm")() - assert watertight.task("import_geom_wtm").get_next_possible_tasks() == [ + _next_possible_tasks = [ "import_body_of_influence_geometry", "set_up_periodic_boundaries", "create_local_refinement_regions", + "load_cad_geometry", "run_custom_journal", ] + if meshing.get_fluent_version() < FluentVersion.v242: + _next_possible_tasks.remove("load_cad_geometry") + assert ( + watertight.task("import_geom_wtm").get_next_possible_tasks() + == _next_possible_tasks + ) watertight.task("import_geom_wtm").insert_next_task( "import_body_of_influence_geometry" )