diff --git a/tests/test_cmap.py b/tests/test_cmap.py index a2050c78..3760d9d8 100644 --- a/tests/test_cmap.py +++ b/tests/test_cmap.py @@ -178,6 +178,7 @@ def test_apply_discrete_cmap(): assert colormap.apply_cmap(data, cm) # Test with negative value + data = data.astype("int16") cm = {-100: (255, 255, 255, 255), 1: (0, 0, 0, 255), 256: (255, 255, 255, 255)} data[0, 5:, 5:] = -100 d, m = colormap.apply_cmap(data, cm) diff --git a/tests/test_io_xarray.py b/tests/test_io_xarray.py index e87f38fd..1d128f93 100644 --- a/tests/test_io_xarray.py +++ b/tests/test_io_xarray.py @@ -54,10 +54,7 @@ def test_xarray_reader(): bounds = tms.xy_bounds(tile) with pytest.raises(rioxarray.exceptions.OneDimensionalRaster) as error: dst.tile(tile.x, tile.y, zoom, auto_expand=False) - assert ( - str(error.value) - == "At least one of the clipped raster x,y coordinates has only one point." - ) + assert "At least one of the clipped raster x,y coordinates" in str(error.value) # Test that a high-zoom tile will succeed with auto_expand=True (and that is the default) img = dst.tile(tile.x, tile.y, zoom)