Skip to content

Commit

Permalink
TST: Fix test_datum_unknown (#1289)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed May 19, 2023
1 parent bb237b3 commit 0073d37
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
PROJ_GTE_91 = PROJ_LOOSE_VERSION >= version.parse("9.1")
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")


def unset_data_dir():
Expand Down
3 changes: 3 additions & 0 deletions test/crs/test_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
PROJ_GTE_91,
PROJ_GTE_901,
PROJ_GTE_911,
PROJ_GTE_921,
assert_can_pickle,
grids_available,
)
Expand Down Expand Up @@ -407,6 +408,8 @@ def test_datum_unknown():
"+towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
)
datum_name = "Unknown based on WGS84 ellipsoid"
if PROJ_GTE_921:
datum_name = "Unknown based on WGS 84 ellipsoid"
if PROJ_GTE_901:
datum_name = f"{datum_name} using towgs84=0,0,0,0,0,0,0"
assert crs.datum.name == datum_name
Expand Down

0 comments on commit 0073d37

Please sign in to comment.