MCPcopy
hub / github.com/protomaps/PMTiles / test_export_src_nodata

Function test_export_src_nodata

python/rio-pmtiles/tests/test_cli.py:144–156  ·  view source on GitHub ↗
(tmpdir, data)

Source from the content-addressed store, hash-verified

142
143
144def test_export_src_nodata(tmpdir, data):
145 inputfile = str(data.join("RGB.byte.tif"))
146 outputfile = str(tmpdir.join("export.pmtiles"))
147 runner = CliRunner()
148 result = runner.invoke(
149 main_group,
150 ["pmtiles", inputfile, outputfile, "--src-nodata", "0", "--dst-nodata", "0"],
151 )
152 assert result.exit_code == 0
153
154 with open(outputfile, 'rb') as f:
155 src = MmapSource(f)
156 assert len(list(all_tiles(src))) == 19
157
158
159def test_export_bilinear(tmpdir, data):

Callers

nothing calls this directly

Calls 2

MmapSourceFunction · 0.90
all_tilesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…