From eff17e04690bb3860e94178a47e8b85321353b10 Mon Sep 17 00:00:00 2001 From: Paul Profizi <100710998+PProfizi@users.noreply.github.com> Date: Thu, 19 Oct 2023 16:26:40 +0200 Subject: [PATCH] Fix condition on server version in test_simulation_results (#523) --- tests/test_simulation.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_simulation.py b/tests/test_simulation.py index a7959889e..701f62662 100644 --- a/tests/test_simulation.py +++ b/tests/test_simulation.py @@ -9,10 +9,9 @@ from ansys.dpf.post.common import AvailableSimulationTypes, elemental_properties from ansys.dpf.post.index import ref_labels from ansys.dpf.post.meshes import Meshes -from conftest import ( # SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_5_0, +from conftest import ( SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_4_0, SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_6_2, - SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0, SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_1, ) @@ -56,7 +55,7 @@ def test_simulation_units(static_simulation): def test_simulation_results(static_simulation): results = static_simulation.results - if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_0: + if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_1: assert len(results) == 12 else: assert len(results) == 13