Skip to content

Commit

Permalink
TST: test_coordinate_operation_grids__alternative_grid_name PROJ 9.4.…
Browse files Browse the repository at this point in the history
…1 compatibility (#1412)
  • Loading branch information
snowman2 authored Jun 21, 2024
1 parent 22ce3e5 commit 69fb46f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
PROJ_LOOSE_VERSION = version.parse(pyproj.__proj_version__)
PROJ_GTE_921 = PROJ_LOOSE_VERSION >= version.parse("9.2.1")
PROJ_GTE_93 = PROJ_LOOSE_VERSION >= version.parse("9.3.0")
PROJ_GTE_941 = PROJ_LOOSE_VERSION >= version.parse("9.4.1")


def unset_data_dir():
Expand Down
7 changes: 5 additions & 2 deletions test/crs/test_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from pyproj.enums import ProjVersion, WktVersion
from pyproj.exceptions import CRSError
from pyproj.transformer import TransformerGroup
from test.conftest import PROJ_GTE_921, assert_can_pickle, grids_available
from test.conftest import PROJ_GTE_921, PROJ_GTE_941, assert_can_pickle, grids_available


class CustomCRS:
Expand Down Expand Up @@ -672,7 +672,10 @@ def test_coordinate_operation_grids__alternative_grid_name():
assert grid.full_name.endswith(grid.short_name)
elif pyproj.network.is_network_enabled():
assert grid.available is True
assert grid.full_name == grid.url
if PROJ_GTE_941:
assert grid.full_name == ""
else:
assert grid.full_name == grid.url
else:
assert grid.available is False
assert grid.full_name == ""
Expand Down

0 comments on commit 69fb46f

Please sign in to comment.