Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ gpu =
tests =
flake8
geopandas
hypothesis
isort
noise >= 1.2.2
dask
Expand Down
13 changes: 12 additions & 1 deletion xrspatial/geotiff/tests/test_fuzz_hypothesis_1661.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,18 @@
# explicitly rejected on write (see _VALID_COMPRESSIONS docstring); 'lerc' and
# 'jpeg2000' are lossy or dtype-restricted and would need their own narrower
# strategies, so they're omitted here.
LOSSLESS_CODECS = ['none', 'deflate', 'lzw', 'packbits', 'zstd', 'lz4']
#
# ``zstd`` and ``lz4`` depend on optional third-party packages that are
# not in the [tests] extras. Drop them from the strategy when those
# packages are missing so the fuzz run does not flake the moment
# Hypothesis happens to draw a codec the runner can't actually write.
from xrspatial.geotiff._compression import LZ4_AVAILABLE, ZSTD_AVAILABLE

LOSSLESS_CODECS = ['none', 'deflate', 'lzw', 'packbits']
if ZSTD_AVAILABLE:
LOSSLESS_CODECS.append('zstd')
if LZ4_AVAILABLE:
LOSSLESS_CODECS.append('lz4')

# Dtype set kept small to keep CI fast. Float and int, signed and unsigned.
ROUND_TRIP_DTYPES = ['uint8', 'uint16', 'int16', 'int32', 'float32', 'float64']
Expand Down
Loading
Loading