3030from ansys .geometry .core .math .point import Point2D
3131from ansys .geometry .core .sketch import Sketch
3232
33- from .conftest import DSCOSCRIPTS_FILES_DIR , skip_if_core_service
33+ from .conftest import DSCOSCRIPTS_FILES_DIR
3434
3535
3636# Python (.py)
3737def test_python_simple_script (modeler : Modeler ):
38- # Skip on CoreService
39- skip_if_core_service (modeler , test_python_simple_script .__name__ , "run_discovery_script_file" )
40-
4138 result = modeler .run_discovery_script_file (DSCOSCRIPTS_FILES_DIR / "simple_script.py" )
4239 pattern_db = re .compile (r"SpaceClaim\.Api\.[A-Za-z0-9]+\.DesignBody" , re .IGNORECASE )
4340 pattern_doc = re .compile (r"SpaceClaim\.Api\.[A-Za-z0-9]+\.Document" , re .IGNORECASE )
@@ -49,11 +46,6 @@ def test_python_simple_script(modeler: Modeler):
4946def test_python_simple_script_ignore_api_version (
5047 modeler : Modeler , caplog : pytest .LogCaptureFixture
5148):
52- # Skip on CoreService
53- skip_if_core_service (
54- modeler , test_python_simple_script_ignore_api_version .__name__ , "run_discovery_script_file"
55- )
56-
5749 result = modeler .run_discovery_script_file (
5850 DSCOSCRIPTS_FILES_DIR / "simple_script.py" ,
5951 api_version = ApiVersions .LATEST ,
@@ -73,18 +65,11 @@ def test_python_simple_script_ignore_api_version(
7365
7466
7567def test_python_failing_script (modeler : Modeler ):
76- # Skip on CoreService
77- skip_if_core_service (modeler , test_python_failing_script .__name__ , "run_discovery_script_file" )
7868 with pytest .raises (GeometryRuntimeError ):
7969 modeler .run_discovery_script_file (DSCOSCRIPTS_FILES_DIR / "failing_script.py" )
8070
8171
8272def test_python_integrated_script (modeler : Modeler ):
83- # Skip on CoreService
84- skip_if_core_service (
85- modeler , test_python_integrated_script .__name__ , "run_discovery_script_file"
86- )
87-
8873 # Tests the workflow of creating a design in PyAnsys Geometry, modifying it with a script,
8974 # and continuing to use it in PyAnsys Geometry
9075
@@ -105,9 +90,6 @@ def test_python_integrated_script(modeler: Modeler):
10590
10691# SpaceClaim (.scscript)
10792def test_scscript_simple_script (modeler : Modeler ):
108- # Skip on CoreService
109- skip_if_core_service (modeler , test_scscript_simple_script .__name__ , "run_discovery_script_file" )
110-
11193 result = modeler .run_discovery_script_file (DSCOSCRIPTS_FILES_DIR / "simple_script.scscript" )
11294 assert len (result ) == 2
11395 pattern_db = re .compile (r"SpaceClaim\.Api\.[A-Za-z0-9]+\.DesignBody" , re .IGNORECASE )
@@ -119,9 +101,6 @@ def test_scscript_simple_script(modeler: Modeler):
119101
120102# Discovery (.dscript)
121103def test_dscript_simple_script (modeler : Modeler ):
122- # Skip on CoreService
123- skip_if_core_service (modeler , test_dscript_simple_script .__name__ , "run_discovery_script_file" )
124-
125104 result = modeler .run_discovery_script_file (DSCOSCRIPTS_FILES_DIR / "simple_script.dscript" )
126105 assert len (result ) == 2
127106 pattern_db = re .compile (r"SpaceClaim\.Api\.[A-Za-z0-9]+\.DesignBody" , re .IGNORECASE )
0 commit comments