Skip to content

Commit

Permalink
TESTS: Fix expected test behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys committed Jan 14, 2025
1 parent c3aa333 commit 33d43f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/system/solvers/test_00_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from ansys.aedt.core import Icepak
from ansys.aedt.core import Maxwell3d
from ansys.aedt.core import Rmxprt
from ansys.aedt.core.generic.errors import AEDTRuntimeError
from ansys.aedt.core.generic.settings import is_linux
from ansys.aedt.core.visualization.post.spisim import SpiSim
import pytest
Expand Down Expand Up @@ -316,7 +317,7 @@ def test_03a_icepak_analyze_and_export_summary(self):
out = self.icepak_app.post.evaluate_boundary_quantity(opening.name, "Ux")
assert out["Mean"]
if self.icepak_app.settings.aedt_version < "2024.1":
with pytest.raises(NotImplementedError):
with pytest.raises(AEDTRuntimeError):
self.icepak_app.post.evaluate_monitor_quantity("test_monitor2", "Temperature")
else:
out = self.icepak_app.post.evaluate_monitor_quantity("test_monitor2", "Temperature")
Expand Down Expand Up @@ -409,7 +410,8 @@ def test_04b_3dl_analyze_setup(self):
if desktop_version > "2024.2":
assert self.hfss3dl_solve.set_export_touchstone()
else:
assert not self.hfss3dl_solve.set_export_touchstone()
with pytest.raises(AEDTRuntimeError):
self.hfss3dl_solve.set_export_touchstone()
assert self.hfss3dl_solve.analyze_setup("Setup1", cores=4, blocking=False)
assert self.hfss3dl_solve.are_there_simulations_running
assert self.hfss3dl_solve.stop_simulations()
Expand Down

0 comments on commit 33d43f4

Please sign in to comment.