Skip to content

Commit

Permalink
Fix error in tests with shapely 2.0.5
Browse files Browse the repository at this point in the history
shapely.Point.coords.xy changed its return type to be consistent with
all other geometry coords.xy return types, but we were relying on the
previous behaviour.
  • Loading branch information
mx-moth committed Aug 13, 2024
1 parent 03f0874 commit 22051f2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ def test_add_landmarks():

assert len(landmarks) == len(axes.texts)
for landmark, text in zip(landmarks, axes.texts):
assert text.get_text() == landmark[0]
assert text.xy == landmark[1].coords.xy
title, point = landmark
assert text.get_text() == title
assert text.xy == (point.x, point.y)


@pytest.mark.mpl_image_compare
Expand Down

0 comments on commit 22051f2

Please sign in to comment.