File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -604,12 +604,14 @@ def test_coordinate_operation_grids__alternative_grid_name():
604604 assert grid .direct_download is True
605605 assert grid .open_license is True
606606 assert grid .short_name == "ca_nrc_ntv1_can.tif"
607- if PROJ_GTE_91 and pyproj .network .is_network_enabled ():
608- assert grid .available is True
609- assert grid .full_name == ""
610- elif grids_available (grid .short_name ):
607+ if (PROJ_GTE_91 and grids_available (grid .short_name , check_network = False )) or (
608+ not PROJ_GTE_91 and grids_available (grid .short_name )
609+ ):
611610 assert grid .available is True
612611 assert grid .full_name .endswith (grid .short_name )
612+ elif PROJ_GTE_91 and pyproj .network .is_network_enabled ():
613+ assert grid .available is True
614+ assert grid .full_name == ""
613615 else :
614616 assert grid .available is False
615617 assert grid .full_name == ""
You can’t perform that action at this time.
0 commit comments