Skip to content

Commit 1c56c0b

Browse files
committed
Mark test as requiring DPF 9.0
1 parent df3cf46 commit 1c56c0b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tests/operators/test_gasket_deformation.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,18 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
# Tests the result.gasket_deformation operator deprecation
23+
# Test the result.gasket_deformation operator deprecation
2424

25-
from pytest import warns
25+
from pytest import mark, warns
2626

2727
import ansys.dpf.core as dpf
28+
import conftest
2829

2930

31+
@mark.skipif(
32+
not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_9_0,
33+
reason="Gasket operator available starting with 9.0,",
34+
)
3035
def test_operator_gasket_deformation_deprecation(server_type):
3136
with warns(match="Operator 'gasket_deformation' is renamed as"):
3237
_ = dpf.operators.result.gasket_deformation()

0 commit comments

Comments
 (0)