Skip to content

Commit 074d752

Browse files
committed
Skip ButtJointSequence tests on 242 server
1 parent 4b27080 commit 074d752

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

tests/unittests/test_butt_joint_sequence.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,23 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23+
from packaging.version import parse as parse_version
2324
import pytest
2425

25-
from ansys.acp.core import PrimaryPly
26+
from ansys.acp.core import ButtJointSequence, PrimaryPly
2627

2728
from .common.tree_object_tester import NoLockedMixin, ObjectPropertiesToTest, TreeObjectTester
2829
from .common.utils import AnyThing
2930

3031

32+
@pytest.fixture(autouse=True)
33+
def skip_if_unsupported_version(acp_instance):
34+
if parse_version(acp_instance.server_version) < parse_version(
35+
ButtJointSequence._SUPPORTED_SINCE
36+
):
37+
pytest.skip("ButtJointSequence is not supported on this version of the server.")
38+
39+
3140
@pytest.fixture
3241
def parent_model(load_model_from_tempfile):
3342
with load_model_from_tempfile() as model:

0 commit comments

Comments
 (0)