From 6c273a14312fccd4ca81a50a6995ff7dc61f1ab5 Mon Sep 17 00:00:00 2001 From: Markus Holzer <markus.holzer@fau.de> Date: Fri, 1 Jul 2022 11:08:12 +0200 Subject: [PATCH] Fix: Version string test case --- pystencils_tests/test_version_string.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pystencils_tests/test_version_string.py b/pystencils_tests/test_version_string.py index a98c1ce84..948515d68 100644 --- a/pystencils_tests/test_version_string.py +++ b/pystencils_tests/test_version_string.py @@ -1,10 +1,11 @@ import pystencils as ps + def test_version_string(): version = ps.__version__ print(version) - numeric_version = [int(x, 10) for x in version.split('.')[0:2]] + numeric_version = [int(x, 10) for x in version.split('.')[0:1]] test_version = sum(x * (100 ** i) for i, x in enumerate(numeric_version)) - assert test_version >= 200 \ No newline at end of file + assert test_version >= 1 -- GitLab