mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
Require GDAL 2.1 for all tests with add_alpha=True
This commit is contained in:
parent
246cb614ec
commit
d3ca5a6b2e
@ -60,6 +60,7 @@ def test_warped_vrt(path_rgb_byte_tif):
|
||||
assert vrt.mask_flag_enums == ([MaskFlags.nodata],) * 3
|
||||
|
||||
|
||||
@requires_gdal21(reason="Nodata deletion requires GDAL 2.1+")
|
||||
def test_warped_vrt_add_alpha(path_rgb_byte_tif):
|
||||
"""A VirtualVRT has the expected VRT properties."""
|
||||
with rasterio.open(path_rgb_byte_tif) as src:
|
||||
@ -101,7 +102,7 @@ def test_warped_vrt_msk_add_alpha(path_rgb_msk_byte_tif, caplog):
|
||||
assert "RGB2.byte.tif.msk" in caplog.text
|
||||
|
||||
|
||||
@requires_gdal21(reason="Nodata deletion requires GDAL 2.1+")
|
||||
@requires_gdal21(reason="nodata deletion requires gdal 2.1+")
|
||||
def test_warped_vrt_msk_nodata(path_rgb_msk_byte_tif, caplog):
|
||||
"""Specifying dst nodata also works for source with .msk"""
|
||||
with rasterio.open(path_rgb_msk_byte_tif) as src:
|
||||
@ -120,6 +121,7 @@ def test_warped_vrt_msk_nodata(path_rgb_msk_byte_tif, caplog):
|
||||
|
||||
assert "RGB2.byte.tif.msk" in caplog.text
|
||||
|
||||
|
||||
def test_warped_vrt_source(path_rgb_byte_tif):
|
||||
"""A VirtualVRT has the expected source dataset."""
|
||||
with rasterio.open(path_rgb_byte_tif) as src:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user