Skip to content

Commit 3b24631

Browse files
committed
Avoid testing Disco export against SC
1 parent 9726c4f commit 3b24631

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

tests/integration/conftest.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ def skip_if_windows(modeler: Modeler, test_name: str, element_not_available: str
7171
pytest.skip(
7272
reason=f"Skipping '{test_name}'. '{element_not_available}' not on Windows services."
7373
) # skip!
74+
75+
def skip_if_spaceclaim(modeler: Modeler, test_name: str, element_not_available: str):
76+
"""Skip test if running on SpaceClaim."""
77+
if modeler.client.backend_type == BackendType.SPACECLAIM:
78+
pytest.skip(
79+
reason=f"Skipping '{test_name}'. '{element_not_available}' not on SpaceClaim."
80+
) # skip!
7481

7582

7683
@pytest.fixture(scope="session")

tests/integration/test_design_export.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
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_linux, skip_if_windows
33+
from .conftest import (
34+
skip_if_linux,
35+
skip_if_windows,
36+
skip_if_spaceclaim)
3437

3538

3639
def _create_demo_design(modeler: Modeler) -> Design:
@@ -197,6 +200,7 @@ def test_export_to_stride(modeler: Modeler, tmp_path_factory: pytest.TempPathFac
197200

198201
def test_export_to_disco(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory):
199202
"""Test exporting a design to dsco format."""
203+
skip_if_spaceclaim(modeler, test_export_to_disco.__name__, "disco export")
200204
# Create a demo design
201205
design = _create_demo_design(modeler)
202206

0 commit comments

Comments
 (0)