Skip to content

Commit 9f218ed

Browse files
committed
Use skipif instead of server failure
Signed-off-by: paul.profizi <[email protected]>
1 parent dedd566 commit 9f218ed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_cyclic_support.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ def test_cyc_support_from_to_workflow(cyclic_lin_rst, server_type):
172172
assert len(exp.base_nodes_scoping().ids) == 32
173173

174174

175-
@pytest.mark.skipif(not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_2)
175+
@pytest.mark.skipif(
176+
not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_2, reason="Requires DPF 8.2 or above."
177+
)
176178
def test_cyc_support_coordinate_system(cyclic_lin_rst):
177179
data_sources = dpf.DataSources(cyclic_lin_rst)
178180
model = dpf.Model(data_sources)
@@ -196,7 +198,9 @@ def test_cyc_support_multistage(cyclic_multistage):
196198
assert np.allclose(cyc_support.sectors_set_for_expansion(stage_num=1).ids, list(range(0, 12)))
197199

198200

199-
@pytest.mark.skipif(not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_2)
201+
@pytest.mark.skipif(
202+
not conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_8_2, reason="Requires DPF 8.2 or above."
203+
)
200204
def test_cyc_support_multistage_low_high_map(cyclic_multistage):
201205
model = dpf.Model(cyclic_multistage)
202206
cyc_support = model.metadata.result_info.cyclic_support

0 commit comments

Comments
 (0)