Skip to content

Commit 69fb46f

Browse files
authored
TST: test_coordinate_operation_grids__alternative_grid_name PROJ 9.4.1 compatibility (#1412)
1 parent 22ce3e5 commit 69fb46f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

test/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
PROJ_LOOSE_VERSION = version.parse(pyproj.__proj_version__)
1515
PROJ_GTE_921 = PROJ_LOOSE_VERSION >= version.parse("9.2.1")
1616
PROJ_GTE_93 = PROJ_LOOSE_VERSION >= version.parse("9.3.0")
17+
PROJ_GTE_941 = PROJ_LOOSE_VERSION >= version.parse("9.4.1")
1718

1819

1920
def unset_data_dir():

test/crs/test_crs.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from pyproj.enums import ProjVersion, WktVersion
2121
from pyproj.exceptions import CRSError
2222
from pyproj.transformer import TransformerGroup
23-
from test.conftest import PROJ_GTE_921, assert_can_pickle, grids_available
23+
from test.conftest import PROJ_GTE_921, PROJ_GTE_941, assert_can_pickle, grids_available
2424

2525

2626
class CustomCRS:
@@ -672,7 +672,10 @@ def test_coordinate_operation_grids__alternative_grid_name():
672672
assert grid.full_name.endswith(grid.short_name)
673673
elif pyproj.network.is_network_enabled():
674674
assert grid.available is True
675-
assert grid.full_name == grid.url
675+
if PROJ_GTE_941:
676+
assert grid.full_name == ""
677+
else:
678+
assert grid.full_name == grid.url
676679
else:
677680
assert grid.available is False
678681
assert grid.full_name == ""

0 commit comments

Comments
 (0)