Skip to content

Commit

Permalink
Fix test that messes with xarray GCP list.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Jul 16, 2024
1 parent 8a34a46 commit fd72d56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_gcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ def test_gcp_geobox_xr(au_gcp_geobox: GCPGeoBox):
assert _gbox.crs == gbox.crs
assert (_gbox.extent ^ gbox.extent).is_empty

# corrupt some gcps
yy.spatial_ref.attrs["gcps"]["features"][0].pop("properties")
# corrupt gcps
yy.spatial_ref.attrs["gcps"] = "not even geojson"
# should not throw, just return None
assert yy.odc.uncached.geobox is None

Expand Down

0 comments on commit fd72d56

Please sign in to comment.