Skip to content

Commit

Permalink
Fix condition on server version in test_simulation_results (#523)
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi authored Oct 19, 2023
1 parent 98a7a93 commit eff17e0
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 eff17e0

Please sign in to comment.