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

Function test_export_bilinear

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

Source from the content-addressed store, hash-verified

157
158
159def test_export_bilinear(tmpdir, data):
160 inputfile = str(data.join("RGB.byte.tif"))
161 outputfile = str(tmpdir.join("export.pmtiles"))
162 runner = CliRunner()
163 result = runner.invoke(
164 main_group, ["pmtiles", inputfile, outputfile, "--resampling", "bilinear"]
165 )
166 assert result.exit_code == 0
167
168 with open(outputfile, 'rb') as f:
169 src = MmapSource(f)
170 assert len(list(all_tiles(src))) == 19
171
172
173def test_skip_empty(tmpdir, empty_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…