File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 20
20
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
# SOFTWARE.
22
22
23
+ from packaging .version import parse as parse_version
23
24
import pytest
24
25
25
- from ansys .acp .core import PrimaryPly
26
+ from ansys .acp .core import ButtJointSequence , PrimaryPly
26
27
27
28
from .common .tree_object_tester import NoLockedMixin , ObjectPropertiesToTest , TreeObjectTester
28
29
from .common .utils import AnyThing
29
30
30
31
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
+
31
40
@pytest .fixture
32
41
def parent_model (load_model_from_tempfile ):
33
42
with load_model_from_tempfile () as model :
You can’t perform that action at this time.
0 commit comments