Skip to content

Commit

Permalink
Skip ButtJointSequence tests on 242 server
Browse files Browse the repository at this point in the history
  • Loading branch information
greschd committed Oct 3, 2024
1 parent a93030e commit 202277c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/unittests/test_butt_joint_sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.

from packaging.version import parse as parse_version
import pytest

from ansys.acp.core import PrimaryPly
from ansys.acp.core import ButtJointSequence, PrimaryPly

from .common.tree_object_tester import NoLockedMixin, ObjectPropertiesToTest, TreeObjectTester
from .common.utils import AnyThing


@pytest.fixture(autouse=True)
def skip_if_unsupported_version(acp_instance):
if parse_version(acp_instance.server_version) < parse_version(
ButtJointSequence._SUPPORTED_SINCE
):
pytest.skip("ButtJointSequence is not supported on this version of the server.")


@pytest.fixture
def parent_model(load_model_from_tempfile):
with load_model_from_tempfile() as model:
Expand Down

0 comments on commit 202277c

Please sign in to comment.