Skip to content

Commit 6946731

Browse files
committed
More robust MVI test with multiple prop groups
1 parent 7034c63 commit 6946731

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/run_tests/driver_mvi_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,12 @@ def test_magnetic_vector_run(
155155
out_group = run_ws.get_entity("Magnetic Vector Inversion")[0]
156156
mesh = out_group.get_entity("mesh")[0]
157157
assert len(mesh.property_groups) == 5
158-
assert len(mesh.property_groups[0].properties) == 2
159-
assert mesh.property_groups[1].property_group_type == GroupTypeEnum.DIPDIR
158+
assert len(mesh.fetch_property_group("Iteration_0").properties) == 2
159+
assert len(mesh.fetch_property_group("LP models").properties) == 6
160+
assert (
161+
mesh.fetch_property_group("Iteration_1").property_group_type
162+
== GroupTypeEnum.DIPDIR
163+
)
160164

161165

162166
def test_magnetic_vector_bounds_run(

0 commit comments

Comments
 (0)