Skip to content

Commit

Permalink
TST: Update test_transformer*__area_of_interest for PROJ 9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Aug 7, 2022
1 parent 5194313 commit 1682555
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,9 @@ def test_transformer__area_of_interest():
transformer = Transformer.from_crs(
4326, 2964, area_of_interest=AreaOfInterest(-136.46, 49.0, -60.72, 83.17)
)
if not grids_available("ca_nrc_ntv2_0.tif"):
if PROJ_GTE_91:
assert transformer.description == "unavailable until proj_trans is called"
elif not grids_available("ca_nrc_ntv2_0.tif"):
assert (
transformer.description == "Inverse of NAD27 to WGS 84 (13) + Alaska Albers"
)
Expand All @@ -723,7 +725,9 @@ def test_transformer_proj__area_of_interest():
transformer = Transformer.from_proj(
4326, 2964, area_of_interest=AreaOfInterest(-136.46, 49.0, -60.72, 83.17)
)
if not grids_available("ca_nrc_ntv2_0.tif"):
if PROJ_GTE_91:
assert transformer.description == "unavailable until proj_trans is called"
elif not grids_available("ca_nrc_ntv2_0.tif"):
assert (
transformer.description == "Inverse of NAD27 to WGS 84 (13) + Alaska Albers"
)
Expand Down

0 comments on commit 1682555

Please sign in to comment.