Skip to content

Commit

Permalink
TST: Update test_transformer_group__get_transform_crs for OSGeo/PROJ#…
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Jun 5, 2022
1 parent 9d0a3b1 commit 142232f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,13 @@
from pyproj.enums import TransformDirection
from pyproj.exceptions import ProjError
from pyproj.transformer import AreaOfInterest, TransformerGroup
from test.conftest import RGF93toWSG84, grids_available, proj_env, proj_network_env
from test.conftest import (
PROJ_GTE_91,
RGF93toWSG84,
grids_available,
proj_env,
proj_network_env,
)


def test_tranform_wgs84_to_custom():
Expand Down Expand Up @@ -691,6 +697,8 @@ def test_transformer_group__get_transform_crs():
tg = TransformerGroup("epsg:4258", "epsg:7415")
if not grids_available("nl_nsgi_rdtrans2018.tif"):
assert len(tg.transformers) == 1
elif PROJ_GTE_91:
assert len(tg.transformers) == 2
else:
assert len(tg.transformers) == 6

Expand Down

0 comments on commit 142232f

Please sign in to comment.