Skip to content

Commit 0c00cdb

Browse files
b-matteopyansys-ci-botRobPasMue
authored
fix: disable unimplemented tests (#1691)
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com>
1 parent 03a5774 commit 0c00cdb

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

doc/changelog.d/1691.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
disable unimplemented tests

tests/integration/test_design.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -932,6 +932,11 @@ def test_download_file(modeler: Modeler, tmp_path_factory: pytest.TempPathFactor
932932
design.download(iges_file, format=DesignFileFormat.IGES)
933933
assert iges_file.exists()
934934

935+
# FMD
936+
fmd_file = tmp_path_factory.mktemp("scdoc_files_download") / "cylinder.fmd"
937+
design.download(fmd_file, format=DesignFileFormat.FMD)
938+
assert fmd_file.exists()
939+
935940
# Linux backend...
936941
else:
937942
binary_parasolid_file = tmp_path_factory.mktemp("scdoc_files_download") / "cylinder.xmt_bin"
@@ -940,17 +945,12 @@ def test_download_file(modeler: Modeler, tmp_path_factory: pytest.TempPathFactor
940945
# PMDB
941946
pmdb_file = tmp_path_factory.mktemp("scdoc_files_download") / "cylinder.pmdb"
942947

943-
# FMD
944-
fmd_file = tmp_path_factory.mktemp("scdoc_files_download") / "cylinder.fmd"
945-
946948
design.download(binary_parasolid_file, format=DesignFileFormat.PARASOLID_BIN)
947949
design.download(text_parasolid_file, format=DesignFileFormat.PARASOLID_TEXT)
948-
design.download(fmd_file, format=DesignFileFormat.FMD)
949950
design.download(pmdb_file, format=DesignFileFormat.PMDB)
950951

951952
assert binary_parasolid_file.exists()
952953
assert text_parasolid_file.exists()
953-
assert fmd_file.exists()
954954
assert pmdb_file.exists()
955955

956956

tests/integration/test_design_export.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
from ansys.geometry.core.math import Plane, Point2D, Point3D, UnitVector3D, Vector3D
3131
from ansys.geometry.core.sketch import Sketch
3232

33+
from .conftest import skip_if_core_service
34+
3335

3436
def _create_demo_design(modeler: Modeler) -> Design:
3537
"""Create a demo design for the tests."""
@@ -178,6 +180,7 @@ def test_export_to_parasolid_binary(modeler: Modeler, tmp_path_factory: pytest.T
178180

179181
def test_export_to_step(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory):
180182
"""Test exporting a design to STEP format."""
183+
skip_if_core_service(modeler, test_export_to_step.__name__, "step_export")
181184
# Create a demo design
182185
design = _create_demo_design(modeler)
183186

@@ -201,6 +204,7 @@ def test_export_to_step(modeler: Modeler, tmp_path_factory: pytest.TempPathFacto
201204

202205
def test_export_to_iges(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory):
203206
"""Test exporting a design to IGES format."""
207+
skip_if_core_service(modeler, test_export_to_iges.__name__, "iges_export")
204208
# Create a demo design
205209
design = _create_demo_design(modeler)
206210

@@ -220,6 +224,7 @@ def test_export_to_iges(modeler: Modeler, tmp_path_factory: pytest.TempPathFacto
220224

221225
def test_export_to_fmd(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory):
222226
"""Test exporting a design to FMD format."""
227+
skip_if_core_service(modeler, test_export_to_fmd.__name__, "fmd_export")
223228
# Create a demo design
224229
design = _create_demo_design(modeler)
225230

0 commit comments

Comments
 (0)