|
5 | 5 | import pytest |
6 | 6 |
|
7 | 7 | from ansys.geometry.core import Modeler |
| 8 | +from ansys.geometry.core.connection.backend import BackendType |
8 | 9 | from ansys.geometry.core.designer import Component, Design |
9 | 10 | from ansys.geometry.core.designer.design import DesignFileFormat |
10 | 11 | from ansys.geometry.core.math import Plane, Point2D, Point3D, UnitVector3D, Vector3D |
@@ -101,7 +102,7 @@ def test_design_import_simple_case(modeler: Modeler): |
101 | 102 | _checker_method(read_design, design) |
102 | 103 |
|
103 | 104 |
|
104 | | -def test_open_file(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory, service_os: str): |
| 105 | +def test_open_file(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory): |
105 | 106 | """Test creation of a component, saving it to a file, and loading it again to a |
106 | 107 | second component and make sure they have the same properties.""" |
107 | 108 |
|
@@ -152,7 +153,7 @@ def test_open_file(modeler: Modeler, tmp_path_factory: pytest.TempPathFactory, s |
152 | 153 | _checker_method(design, design2, True) |
153 | 154 |
|
154 | 155 | # Test HOOPS formats (Windows only) |
155 | | - if service_os == "windows": |
| 156 | + if modeler.client.backend_type != BackendType.LINUX_SERVICE: |
156 | 157 | # STEP |
157 | 158 | file = tmp_path_factory.mktemp("test_design_import") / "two_cars.step" |
158 | 159 | design.download(file, DesignFileFormat.STEP) |
|
0 commit comments