Skip to content

Commit

Permalink
Skip test for pre 24R1 SP2
Browse files Browse the repository at this point in the history
  • Loading branch information
widerschein committed Apr 21, 2024
1 parent 191f6c0 commit e72d97b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/tcp/test_nodes_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pytest

from ansys.optislang.core import Optislang, node_types
from ansys.optislang.core.osl_server import OslVersion
from ansys.optislang.core.tcp.nodes import System

pytestmark = pytest.mark.local_osl
Expand Down Expand Up @@ -56,6 +57,9 @@ def optislang(scope="function", autouse=False) -> Optislang:

def test_all_nodes_creation(optislang: Optislang):
"""Test creation of all available nodes."""
if optislang.osl_version < OslVersion(24, 1, 2, 0):
pytest.skip(f"Not compatible with {optislang.osl_version_string}")

rs = optislang.application.project.root_system
rs.delete_children_nodes()
for node_type in NODE_TYPES:
Expand Down

0 comments on commit e72d97b

Please sign in to comment.