mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
New Env class and tests. More logging, tests, safer environment Remove usage (deprecated) of rasterio.drivers() Also pep8 cleanups throughout the tests and a fix for unchecked dtypes when opening a dataset in 'w' mode. Now we can simply import warnings in __init__.py. In the deprecations tests, we needed to see a single warning only one time to avoid multiple drivers() warnings. Add a global env. Add rasterio.env.setenv()
9 lines
265 B
Python
9 lines
265 B
Python
from rasterio.errors import NodataShadowWarning
|
|
|
|
|
|
def test_nodata_shadow():
|
|
assert str(NodataShadowWarning()) == (
|
|
"The dataset's nodata attribute is shadowing "
|
|
"the alpha band. All masks will be determined "
|
|
"by the nodata attribute")
|