From 86575740cc3193594be7ec632ce8a4239aebce6e Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Wed, 20 Sep 2023 15:11:48 +0200 Subject: [PATCH] Fix retro for test_get_resultinfo (#1170) --- tests/test_resultinfo.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_resultinfo.py b/tests/test_resultinfo.py index bf98337742..2898401897 100644 --- a/tests/test_resultinfo.py +++ b/tests/test_resultinfo.py @@ -25,7 +25,10 @@ def test_get_resultinfo_no_model(velocity_acceleration, server_type): op.connect(4, dataSource) res = op.get_output(0, dpf.core.types.result_info) assert res.analysis_type == "static" - assert res.n_results == 15 + if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0: + assert res.n_results == 14 + else: + assert res.n_results == 15 assert "m, kg, N, s, V, A" in res.unit_system assert res.physics_type == mechanical @@ -33,7 +36,10 @@ def test_get_resultinfo_no_model(velocity_acceleration, server_type): def test_get_resultinfo(model): res = model.metadata.result_info assert res.analysis_type == "static" - assert res.n_results == 15 + if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0: + assert res.n_results == 14 + else: + assert res.n_results == 15 assert "m, kg, N, s, V, A" in res.unit_system assert res.physics_type == mechanical assert "Static analysis" in str(res)