Skip to content

Commit

Permalink
TST: Adjust test_repr__conditional for PROJ 9.3 (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Aug 30, 2023
1 parent 510c3c2 commit f4dc086
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
PROJ_GTE_911 = PROJ_LOOSE_VERSION >= version.parse("9.1.1")
PROJ_GTE_92 = PROJ_LOOSE_VERSION >= version.parse("9.2.0")
PROJ_GTE_921 = PROJ_LOOSE_VERSION >= version.parse("9.2.1")
PROJ_GTE_93 = PROJ_LOOSE_VERSION >= version.parse("9.3.0")


def unset_data_dir():
Expand Down
3 changes: 2 additions & 1 deletion test/test_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from test.conftest import (
PROJ_GTE_91,
PROJ_GTE_92,
PROJ_GTE_93,
grids_available,
proj_env,
proj_network_env,
Expand Down Expand Up @@ -540,7 +541,7 @@ def test_repr__conditional():
"Description: unavailable until proj_trans is called\n"
"Area of Use:\n- undefined"
)
elif PROJ_GTE_92:
elif PROJ_GTE_92 and not PROJ_GTE_93:
assert trans_repr == (
"<Unknown Transformer: noop>\n"
"Description: Transformation from EGM2008 height to WGS 84 "
Expand Down

0 comments on commit f4dc086

Please sign in to comment.