Skip to content

Commit b813a5b

Browse files
test: Update test w.r.t. recent exposure flag changes in data-model. (#4031)
Update couple of tests with respect to changes in the exposure level flags to developer. This has to be merged into the release v0.30 with a patch as well. --------- Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 6c5e9c5 commit b813a5b

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

doc/changelog.d/4031.test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update test w.r.t. recent exposure flag changes in data-model.

tests/test_new_meshing_workflow.py

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -278,26 +278,32 @@ def test_new_fault_tolerant_workflow(new_meshing_session_wo_exit):
278278
fault_tolerant.update_region_settings.filter_category.set_state(
279279
"Identified Regions"
280280
)
281-
fault_tolerant.update_region_settings.old_region_leakage_size_list.set_state([""])
282-
fault_tolerant.update_region_settings.old_region_mesh_method_list.set_state(
281+
fault_tolerant.update_region_settings.all_region_leakage_size_list.set_state([""])
282+
fault_tolerant.update_region_settings.all_region_mesh_method_list.set_state(
283283
["wrap"]
284284
)
285-
fault_tolerant.update_region_settings.old_region_name_list.set_state(
285+
fault_tolerant.update_region_settings.all_region_name_list.set_state(
286286
["fluid-region-1"]
287287
)
288-
fault_tolerant.update_region_settings.old_region_overset_componen_list.set_state(
288+
fault_tolerant.update_region_settings.all_region_overset_componen_list.set_state(
289289
["no"]
290290
)
291-
fault_tolerant.update_region_settings.old_region_type_list.set_state(["fluid"])
292-
fault_tolerant.update_region_settings.old_region_volume_fill_list.set_state(
291+
fault_tolerant.update_region_settings.all_region_type_list.set_state(["fluid"])
292+
fault_tolerant.update_region_settings.all_region_volume_fill_list.set_state(
293293
["hexcore"]
294294
)
295-
fault_tolerant.update_region_settings.region_leakage_size_list.set_state([""])
296-
fault_tolerant.update_region_settings.region_mesh_method_list.set_state(["wrap"])
297-
fault_tolerant.update_region_settings.region_name_list.set_state(["fluid-region-1"])
298-
fault_tolerant.update_region_settings.region_overset_componen_list.set_state(["no"])
299-
fault_tolerant.update_region_settings.region_type_list.set_state(["fluid"])
300-
fault_tolerant.update_region_settings.region_volume_fill_list.set_state(["tet"])
295+
fault_tolerant.update_region_settings.all_region_leakage_size_list.set_state([""])
296+
fault_tolerant.update_region_settings.all_region_mesh_method_list.set_state(
297+
["wrap"]
298+
)
299+
fault_tolerant.update_region_settings.all_region_name_list.set_state(
300+
["fluid-region-1"]
301+
)
302+
fault_tolerant.update_region_settings.all_region_overset_componen_list.set_state(
303+
["no"]
304+
)
305+
fault_tolerant.update_region_settings.all_region_type_list.set_state(["fluid"])
306+
fault_tolerant.update_region_settings.all_region_volume_fill_list.set_state(["tet"])
301307
fault_tolerant.update_region_settings()
302308

303309
# Choose mesh control options
@@ -1541,15 +1547,18 @@ def test_accessors_for_argument_sub_items(new_meshing_session):
15411547

15421548
volume_mesh_gen = watertight.create_volume_mesh
15431549
assert (
1544-
volume_mesh_gen.arguments.volume_fill_controls.type.default_value()
1545-
== "Cartesian"
1550+
volume_mesh_gen.arguments.volume_fill_controls.cell_sizing.default_value()
1551+
== "Geometric"
15461552
)
15471553

15481554
# Test particular to string type (allowed_values() only available in string types)
1549-
assert volume_mesh_gen.arguments.volume_fill_controls.type.allowed_values() == [
1550-
"Octree",
1551-
"Cartesian",
1552-
]
1555+
assert (
1556+
volume_mesh_gen.arguments.volume_fill_controls.cell_sizing.allowed_values()
1557+
== [
1558+
"Size Field",
1559+
"Geometric",
1560+
]
1561+
)
15531562
feat_angle = import_geom.arguments.cad_import_options.feature_angle
15541563
assert feat_angle.default_value() == 40.0
15551564

0 commit comments

Comments
 (0)