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

Function test_export_zoom_both

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

Source from the content-addressed store, hash-verified

77
78
79def test_export_zoom_both(tmpdir, data):
80 inputfile = str(data.join("RGB.byte.tif"))
81 outputfile = str(tmpdir.join("export.pmtiles"))
82 runner = CliRunner()
83 result = runner.invoke(
84 main_group, ["pmtiles", inputfile, outputfile, "--zoom-levels", "6..7"]
85 )
86 assert result.exit_code == 0
87
88 with open(outputfile, 'rb') as f:
89 src = MmapSource(f)
90 assert len(list(all_tiles(src))) == 6
91
92def test_export_zoom_neither(tmpdir, data):
93 inputfile = str(data.join("RGB.byte.tif"))

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…