Skip to content

Commit

Permalink
Fixing upper version limit (#2094)
Browse files Browse the repository at this point in the history
Fixing upper version

Co-authored-by: Camille <[email protected]>
  • Loading branch information
germa89 and clatapie authored Jun 2, 2023
1 parent da9fabe commit 89e2d2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_mapdl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test MAPDL interface"""
from datetime import datetime
import os
from pathlib import Path
import re
Expand Down Expand Up @@ -279,7 +280,10 @@ def test_str(mapdl):

def test_version(mapdl):
assert isinstance(mapdl.version, float) # Checking MAPDL version
assert 20.0 < mapdl.version < 24.0 # Some upper bound.
expected_version = float(
datetime.now().year - 2000 + 1 + 1
) # the second +1 is to give some tolerance.
assert 20.0 < mapdl.version < expected_version # Some upper bound.


def test_pymapdl_version():
Expand Down

0 comments on commit 89e2d2d

Please sign in to comment.