Skip to content

Commit cb1e718

Browse files
committed
Adapt test get_country_geometries_fail
1 parent cf57963 commit cb1e718

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

climada/util/test/test_coordinates.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1460,12 +1460,14 @@ def test_get_country_geometries_fail(self):
14601460
with self.assertRaises(ValueError) as cm:
14611461
u_coord.get_country_geometries(extent=(-20, 350, 0, 0))
14621462
self.assertIn(
1463-
"longitude extent range is greater than 360: -20 to 350", str(cm.exception)
1463+
"Input lat and lon coordinates are not geographic "
1464+
"or have total extents > 180° for lat or > 360° for lon.",
1465+
str(cm.exception),
14641466
)
14651467
with self.assertRaises(ValueError) as cm:
1466-
u_coord.get_country_geometries(extent=(350, -20, 0, 0))
1468+
u_coord.get_country_geometries(extent=(340, -20, 0, 0))
14671469
self.assertIn(
1468-
"longitude extent at the left (350) is larger "
1470+
"longitude extent at the left (340) is larger "
14691471
"than longitude extent at the right (-20)",
14701472
str(cm.exception),
14711473
)

0 commit comments

Comments
 (0)