Skip to content

Commit 7152e1d

Browse files
committed
Added a smoke test for the imprinted gmsh object
1 parent 99130d4 commit 7152e1d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/smoke_test.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ def test_nested_cubes():
2424
assert len(surfaces) == 18
2525

2626

27+
def test_imprinted_assembly_mesh():
28+
"""
29+
Tests to make sure that the imprinted assembly mesh works correctly with tagging.
30+
"""
31+
32+
# Create the basic assembly
33+
assy = generate_test_cross_section()
34+
35+
# Convert eh assembly to an imprinted GMSH mesh
36+
gmsh = assy.getImprintedGmsh()
37+
38+
# Make sure we have the correct number of surfaces
39+
surfaces = gmsh.model.getEntities(2)
40+
assert len(surfaces) == 56
41+
42+
2743
def test_basic_assembly():
2844
"""
2945
Tests to make sure that the most basic assembly works correctly with tagging.

0 commit comments

Comments
 (0)