Skip to content

Commit

Permalink
Test all code paths in crs equality operator
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill888 committed Oct 25, 2022
1 parent afbd0db commit a680b5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_crs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

from odc.geo import geom
from odc.geo.crs import (
_CRS,
CRS,
CRSError,
CRSMismatchError,
Expand Down Expand Up @@ -167,6 +168,9 @@ def test_crs_compat():
assert CRS(crs_rio).epsg == 3577

assert (CRS(crs_rio) == crs_rio) is True
assert CRS(_CRS(crs_rio)) == CRS(crs_rio)
assert CRS(str(crs_rio)) == crs_rio
assert CRS(crs_rio) == 3577

with pytest.raises(CRSError):
CRS(("random", "tuple"))
Expand Down

0 comments on commit a680b5e

Please sign in to comment.