Skip to content

Commit

Permalink
Fix retro for test_get_resultinfo (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi authored Sep 20, 2023
1 parent e933522 commit 8657574
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/test_resultinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,21 @@ 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


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)
Expand Down

0 comments on commit 8657574

Please sign in to comment.