Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/test_importing_geometries.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ def clear_wkdir_from_cads(mapdl):
## IGES
#
def test_readin_igs(mapdl, cleared):
mapdl.igesin(fname=os.path.join(CADs_path, "CubeWithHole"), ext="igs")
mapdl.upload(os.path.join(CADs_path, "CubeWithHole.CATPart"))
mapdl.igesin(fname="CubeWithHole", ext="igs")
assert geometry_test_is_correct(mapdl, geometry="iges")

nareas = mapdl.geometry.n_area
Expand Down Expand Up @@ -118,6 +119,7 @@ def test_readin_sat(mapdl, cleared):
else:
context = NullContext()

mapdl.upload(os.path.join(CADs_path, "CubeWithHole.sat"))
with context:
mapdl.satin(
"CubeWithHole", extension="sat", path=CADs_path, entity="solid", fmt=0
Expand Down Expand Up @@ -150,6 +152,7 @@ def test_readin_x_t(mapdl, cleared):
else:
context = NullContext()

mapdl.upload(os.path.join(CADs_path, "CubeWithHole.x_t"))
with context:
mapdl.parain(
name="CubeWithHole", extension="x_t", path=CADs_path, entity="solid", fmt=0
Expand All @@ -165,14 +168,15 @@ def test_readin_catiav5(mapdl, cleared):
MapdlRuntimeError, match="No shared command/library files were found"
)

elif ON_CI:
elif os.name == "posix":
context = pytest.raises(
MapdlInvalidRoutineError, match=" ~CAT5IN is not a recognized"
)

else:
context = NullContext()

mapdl.upload(os.path.join(CADs_path, "CubeWithHole.CATPart"))
with context:
mapdl.cat5in(
name="CubeWithHole",
Expand Down
Loading