Skip to content

Commit 2078cd0

Browse files
fix: add version conditions on new tests
1 parent f8467b6 commit 2078cd0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_workflow_topology.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
from ansys import dpf
2626
import ansys.dpf.core.operators as op
27+
import conftest
2728

2829

2930
def test_instantiate_workflow_to_workflow_topology_op(server_type):
@@ -163,12 +164,20 @@ def expected_workflow_topology(workflow):
163164
return workflow_topologies[workflow.name]
164165

165166

167+
@pytest.mark.skipif(
168+
not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0,
169+
reason="any does not support operator below 8.0",
170+
)
166171
def test_workflow_get_topology(workflow):
167172
workflow_topology = workflow.get_topology()
168173

169174
assert workflow_topology
170175

171176

177+
@pytest.mark.skipif(
178+
not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_10_0,
179+
reason="any does not support operator below 8.0",
180+
)
172181
def test_workflow_topology_sizes(workflow, expected_workflow_topology):
173182
workflow_topology = workflow.get_topology()
174183

0 commit comments

Comments
 (0)