(tmpdir, data)
| 77 | |
| 78 | |
| 79 | def 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 | |
| 92 | def test_export_zoom_neither(tmpdir, data): |
| 93 | inputfile = str(data.join("RGB.byte.tif")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…