Skip to content

Commit

Permalink
refactor: Meshing Workflow test. (#2654)
Browse files Browse the repository at this point in the history
* Refactor Meshing Workflow test.

* Update tests/test_new_meshing_workflow.py

* Update tests/test_new_meshing_workflow.py

* Update error check.
  • Loading branch information
prmukherj authored Apr 9, 2024
1 parent ad066f8 commit 80aa158
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
13 changes: 0 additions & 13 deletions tests/test_meshing_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,19 +419,6 @@ def test_old_workflow_structure(new_mesh_session):
)


@pytest.mark.fluent_version(">=23.2")
def test_new_workflow_structure(new_mesh_session):
meshing = new_mesh_session
watertight = meshing.watertight()
assert watertight.import_geometry.arguments()
with pytest.raises(AttributeError) as msg:
watertight.TaskObject["Import Geometry"]
assert (
msg.value.args[0]
== "'WatertightMeshingWorkflow' object has no attribute 'TaskObject'"
)


@pytest.mark.nightly
@pytest.mark.codegen_required
@pytest.mark.fluent_version(">=24.2")
Expand Down
10 changes: 10 additions & 0 deletions tests/test_new_meshing_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,16 @@ def downstream_names(task):
]


@pytest.mark.codegen_required
@pytest.mark.fluent_version(">=23.2")
def test_new_workflow_structure(new_mesh_session):
meshing = new_mesh_session
watertight = meshing.watertight()
assert watertight.import_geometry.arguments()
with pytest.raises(AttributeError):
watertight.TaskObject["Import Geometry"]


@pytest.mark.skip("Randomly failing in CI")
@pytest.mark.codegen_required
@pytest.mark.fluent_version(">=23.2")
Expand Down

0 comments on commit 80aa158

Please sign in to comment.