Skip to content

Commit f9c5b8c

Browse files
chore: Update 2d Meshing test. (#4072)
Update 2d Meshing test. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 6ffce69 commit f9c5b8c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update 2d Meshing test.

tests/test_meshing_workflow.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,10 @@ def test_old_workflow_structure(new_meshing_session):
268268
@pytest.mark.nightly
269269
@pytest.mark.codegen_required
270270
@pytest.mark.fluent_version(">=24.2")
271-
def test_new_2d_meshing_workflow(new_meshing_session):
271+
def test_new_2d_meshing_workflow(new_meshing_session_wo_exit):
272272
# Import geometry
273273
import_file_name = examples.download_file("NACA0012.fmd", "pyfluent/airfoils")
274-
meshing = new_meshing_session
274+
meshing = new_meshing_session_wo_exit
275275
meshing.workflow.InitializeWorkflow(WorkflowType="2D Meshing")
276276
meshing.workflow.TaskObject["Load CAD Geometry"].Arguments.set_state(
277277
{
@@ -421,7 +421,9 @@ def test_new_2d_meshing_workflow(new_meshing_session):
421421

422422
# Switch to solution mode
423423
solver = meshing.switch_to_solver()
424-
assert solver
424+
assert solver.is_active() is True
425+
assert meshing.is_active() is False
426+
solver.exit()
425427

426428

427429
@pytest.mark.fluent_version(">=24.1")

0 commit comments

Comments
 (0)