Skip to content

Commit

Permalink
Changed the way the version is converted to an integer in the equalit…
Browse files Browse the repository at this point in the history
…y test for Shapely 2.0
  • Loading branch information
aanastasiou committed Jul 14, 2023
1 parent 640605f commit df3f85f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_contrib/test_spatial_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def test_equality_with_other_objects():
except ImportError:
pytest.skip("Shapely module not present")

if int(__version__.replace(".", "")) < 200:
if int("".join(__version__.split(".")[0:3])) < 200:
pytest.skip(f"Shapely 2.0 not present (Current version is {__version__}")

assert neomodel.contrib.spatial_properties.NeomodelPoint((0,0)) == neomodel.contrib.spatial_properties.NeomodelPoint(x=0, y=0)
Expand Down

0 comments on commit df3f85f

Please sign in to comment.