Skip to content

Commit

Permalink
Fix condition on server version in test_simulation_results
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Oct 19, 2023
1 parent 98a7a93 commit ec695d7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/test_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ec695d7

Please sign in to comment.