Skip to content

Commit

Permalink
TST: test_coordinate_operation_grids__alternative_grid_name - handle …
Browse files Browse the repository at this point in the history
…when PROJ 9.1 and local grid exists (#1130)
  • Loading branch information
snowman2 committed Sep 6, 2022
1 parent 22cc5e0 commit b75ad49
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/crs/test_crs.py
Expand Up @@ -604,12 +604,14 @@ def test_coordinate_operation_grids__alternative_grid_name():
assert grid.direct_download is True
assert grid.open_license is True
assert grid.short_name == "ca_nrc_ntv1_can.tif"
if PROJ_GTE_91 and pyproj.network.is_network_enabled():
assert grid.available is True
assert grid.full_name == ""
elif grids_available(grid.short_name):
if (PROJ_GTE_91 and grids_available(grid.short_name, check_network=False)) or (
not PROJ_GTE_91 and grids_available(grid.short_name)
):
assert grid.available is True
assert grid.full_name.endswith(grid.short_name)
elif PROJ_GTE_91 and pyproj.network.is_network_enabled():
assert grid.available is True
assert grid.full_name == ""
else:
assert grid.available is False
assert grid.full_name == ""
Expand Down

0 comments on commit b75ad49

Please sign in to comment.