Skip to content

Commit dd39086

Browse files
test: activate 8 linux tests (#1745)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 1281994 commit dd39086

File tree

5 files changed

+5
-34
lines changed

5 files changed

+5
-34
lines changed

doc/changelog.d/1745.test.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
activate 8 linux tests

tests/integration/test_design.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,9 +2076,6 @@ def test_set_body_name(modeler: Modeler):
20762076

20772077
def test_set_fill_style(modeler: Modeler):
20782078
"""Test the setting the fill style of a body."""
2079-
# Skip test on CoreService
2080-
skip_if_core_service(modeler, test_set_fill_style.__name__, "set_fill_style")
2081-
20822079
design = modeler.create_design("RVE")
20832080
unit = DEFAULT_UNITS.LENGTH
20842081

@@ -2273,9 +2270,6 @@ def test_body_mapping(modeler: Modeler):
22732270

22742271
def test_sphere_creation(modeler: Modeler):
22752272
"""Test the creation of a sphere body with a given radius."""
2276-
# Skip test on CoreService
2277-
skip_if_core_service(modeler, test_sphere_creation.__name__, "create_sphere")
2278-
22792273
design = modeler.create_design("Spheretest")
22802274
center_point = Point3D([10, 10, 10], UNITS.m)
22812275
radius = Distance(1, UNITS.m)
@@ -2492,10 +2486,6 @@ def test_create_body_from_loft_profile(modeler: Modeler):
24922486
"""Test the ``create_body_from_loft_profile()`` method to create a vase
24932487
shape.
24942488
"""
2495-
# Skip test on CoreService
2496-
skip_if_core_service(
2497-
modeler, test_create_body_from_loft_profile.__name__, "'create_body_from_loft_profile'"
2498-
)
24992489
design_sketch = modeler.create_design("loftprofile")
25002490

25012491
profile1 = Circle(origin=[0, 0, 0], radius=8).trim(Interval(0, 2 * np.pi))

tests/integration/test_geometry_commands.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
from ansys.geometry.core.shapes.curves.line import Line
3737
from ansys.geometry.core.sketch.sketch import Sketch
3838

39-
from .conftest import FILES_DIR, skip_if_core_service
39+
from .conftest import FILES_DIR
4040

4141

4242
def test_chamfer(modeler: Modeler):
@@ -696,12 +696,7 @@ def test_split_body_by_slicer_face(modeler: Modeler):
696696

697697
def test_split_body_by_slicer_edge(modeler: Modeler):
698698
"""Test split body by slicer edge"""
699-
# Skip for Core service
700-
skip_if_core_service(
701-
modeler, test_split_body_by_slicer_edge.__name__, "split_body_by_slicer_edge"
702-
)
703-
704-
design = modeler.open_file(FILES_DIR / "Edge_Slice_test.dsco")
699+
design = modeler.open_file(FILES_DIR / "Edge_Slice_Test.dsco")
705700

706701
assert len(design.bodies) == 1
707702
body = design.bodies[0]

tests/integration/test_issues.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from pathlib import Path
2525

2626
import numpy as np
27-
import pytest
2827

2928
from ansys.geometry.core.math import (
3029
UNITVECTOR3D_X,
@@ -38,7 +37,7 @@
3837
from ansys.geometry.core.modeler import Modeler
3938
from ansys.geometry.core.sketch import Sketch
4039

41-
from .conftest import FILES_DIR, skip_if_core_service
40+
from .conftest import FILES_DIR
4241

4342

4443
def test_issue_834_design_import_with_surfaces(modeler: Modeler):
@@ -47,10 +46,6 @@ def test_issue_834_design_import_with_surfaces(modeler: Modeler):
4746
For more info see
4847
https://github.com/ansys/pyansys-geometry/issues/834
4948
"""
50-
# TODO: to be reactivated
51-
# https://github.com/ansys/pyansys-geometry/issues/799
52-
skip_if_core_service(modeler, test_issue_834_design_import_with_surfaces.__name__, "open_file")
53-
5449
# Open the design
5550
design = modeler.open_file(Path(FILES_DIR, "DuplicateFacesDesignBefore.scdocx"))
5651

@@ -87,9 +82,6 @@ def test_issue_1184_sphere_creation_crashes(modeler: Modeler):
8782
For more info see
8883
https://github.com/ansys/pyansys-geometry/issues/1184
8984
"""
90-
# Skip this test on CoreService since it is not implemented yet
91-
skip_if_core_service(modeler, test_issue_1184_sphere_creation_crashes.__name__, "create_sphere")
92-
9385
design = modeler.create_design("SphereCreationIssue")
9486

9587
plane = Plane(
@@ -140,11 +132,6 @@ def test_issue_1304_arc_sketch_creation():
140132
DEFAULT_UNITS.LENGTH = UNITS.meter
141133

142134

143-
# TODO: Temporary fix for boolean operations
144-
# Issue had to be skipped due to the fact that the intersect operation is not working as expected
145-
# when using command-based boolean operations.
146-
# https://github.com/ansys/pyansys-geometry/issues/1733
147-
@pytest.mark.skip(reason="This test is not working as expected")
148135
def test_issue_1192_temp_body_on_empty_intersect(modeler: Modeler):
149136
"""Test demonstrating the issue when intersecting two bodies that do not intersect
150137
and the empty temporal body that gets created."""

tests/integration/test_prepare_tools.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from ansys.geometry.core.modeler import Modeler
2525

26-
from .conftest import FILES_DIR, skip_if_core_service
26+
from .conftest import FILES_DIR
2727

2828

2929
def test_volume_extract_from_faces(modeler: Modeler):
@@ -53,8 +53,6 @@ def test_volume_extract_from_edge_loops(modeler: Modeler):
5353

5454
def test_share_topology(modeler: Modeler):
5555
"""Test share topology operation is between two bodies."""
56-
# Skip test on CoreService
57-
skip_if_core_service(modeler, test_share_topology.__name__, "prepare_tools")
5856
design = modeler.open_file(FILES_DIR / "MixingTank.scdocx")
5957

6058
assert modeler.prepare_tools.share_topology(design.bodies)

0 commit comments

Comments
 (0)